Actual code appearing on my website? Help needed.

Hi Everyone, hope everybody is doing well?

I’m testing out a new theme (Minimog) which looks fantastic and fast! All’s going well apart from the price on the collection pages and product pages is actually showing the code!

See below in this image:

Really strange indeed.

Any thoughts as to why this might be happening?

Thanks in advance
Dave

1 Like

Hi there @davidclabon ,

May I know who added the code to display the price? Because the code is wrong. I don’t how many issues are there in the code but the first one I noticed is that the class is missing double quotes around it (“”).

Hope it helps.

HI,

The code was as the theme installed.

Not sure if I’ve found the right piece of code or not, but I found this in the ‘product-card.liquid’;

{%- if show_vendor -%} {{ product.vendor }} {%- endif -%} {{ product.title | escape }}
{% if variant == blank %} {% assign variant = product.selected_or_first_available_variant %} {% endif %}
variant.price %} price--on-sale{% endif %}"> {% render 'product-prices', product: product %}