Add a text after price - Product page

Highlighted
New Member
12 0 0

Hi,

I would like to add a text just before the price on my product page as follow:

kevin331_0-1594835468163.png

 

I don't know where i can do that. Liquid, html ? 

Someone can help me please ?

 

Thank you in advance !

 

0 Likes
Highlighted
Shopify Partner
478 59 74

@kevin331 ,

You can do this by changing product.liquid or product-template.liquid or alternate product template. It depends on the theme you are using. You will have to find place where product is displaying price and put your custom HTML code with the text you desire there. You may share the URL of the store so we can give better direction on what kind of lines to look

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

Skype : lokendra.panwar1
0 Likes
Highlighted
Excursionist
16 0 3

As @kevin331 said, you could add the text to the liquid files. Or you could insert it using jQuery if your theme has it installed.

Something like this, you'd need to replace the ".price-container" with the element that contains the price, and of course the "your text here" bit too.

$(document).ready(function() {
  $('.price-container').prepend('your text here');
});

 

0 Likes
Highlighted
New Member
12 0 0

Thank you for your answer. 

There is too much product template code with my theme. I don't know which is the correct one... product.liquid, product.pagetemplate.liquid, product.custom.liquid, ...

Here is my store, if it can help you to answer me  

https://www.fitharm.com/collections/shop/products/fitharm-la-semelle-orthopedique

 

Thank you in advance

0 Likes
Highlighted
New Member
12 0 0

Someone please ?

0 Likes