Change the position of an element

Solved

Change the position of an element

entranced
Explorer
73 2 14

Hi there,

 

For each product in my store, the EAN code for the respective product is displayed.. This is the custom Liquid code I am using:

{% if product.variants.size > 0 %}
<p style="font-size: 12px;">EAN: {{ product.variants.first.barcode }}</p>
{% else %}
<p style="font-size: 12px;">EAN: No barcode available.</p>
{% endif %}



I have tried to move this information into the collapsible product description. Is it possible to solve this with CSS?

URL: doftnoter.se 

Passw: test12345

 

ean.png

 

 

Thanks!

Accepted Solution (1)

entranced
Explorer
73 2 14

This is an accepted solution.

Case solved. I added the code directly in main-product.liquid instead of using a custom liquid.

View solution in original post

Reply 1 (1)

entranced
Explorer
73 2 14

This is an accepted solution.

Case solved. I added the code directly in main-product.liquid instead of using a custom liquid.