I can not find this text in my theme.liquid file any suggestions on why. I am in a development store, but can’t see in my live s
Is the theme working though,
Also try downloading the actual theme locally to inspect files, the online editor is a bare minimum feature don’t use it as a daily driver.
If just missing then just readd the {{ content_for_layout }}.
The theme works as should I would just like to add some code into file
what does adding some code have to with {{ content_for_layout }}
What is the GOAL?
The goal is to additional text in a conditional statement. ie:
{% if template contains ‘wholesale’ %}
{% if customer %}
{% if customer.tags contains ‘wholesale’ %}
{{ content_for_layout }}
{% else %}
{% include ‘wholesale-note’ %}
{% endif %}
{% else %}
{% include ‘wholesale-note’ %}
{% endif %}
{% else%}
{{ content_for_layout }}
{% endif %}
Hi @RickS386 ,
This is Theodore from PageFly - Shopify Page Builder App.
There are a few reasons why the content_for_layout liquid tag might not be present in the theme.liquid file. Some themes handle content on pages in a different way and don’t use that tag. While review subject records in an improvement store, that tag could be added powerfully when distributed live so you wouldn’t see it in the documents. Make certain to check the primary theme.liquid document explicitly, as content_for_layout is generally characterized there. Clearing the program reserve and hard reloading the page guarantees you see the most recent subject document renditions. Utilizing Shopify’s subject proofreader to see dynamic subject records live shows the genuine code, instead of simply downloading them physically which could be obsolete. Assuming you as of late changed topics, the upgraded one may not utilize content_for_layout by any stretch of the imagination. Generally, on the off chance that the tag is as yet not found, contact the topic designer for particulars on how that subject handles page content and fluid. Checking these potential causes can assist with deciding why content_for_layout isn’t showing up in the topic records.
I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly