How do i add text under a the cart or search or customer icon in the when hovering the mouse over it

Ronaldh
Shopify Partner
7 0 0

Hello,

 

How do i add text under a the cart or search or customer icon in the when hovering the mouse over itshopp.png. I have attached an example picture from another store.

 

Thanks in Advance

Reply 1 (1)

sahilsharma9515
Shopify Partner
995 124 189

Hi @Ronaldh Please add the code in your theme.css/base.css/style.css file which is available in your theme.

 

.icon-cart:hover::after {
    content: Your title is here;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    z-index: 999;
}

If you are not sure where is your theme.css/base.css/index.css/style.css file please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.css/base.css/index.css/style.css in the code in left hand side which ever is available in your theme.
  6. You can add the above code at the bottom of the file.

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️