Shopify themes, liquid, logos, and UX
How do i show content if the pageid matches the conditions.
For example ive tried the following :
{% if page.id == "258384388" %}
Show Content
{% endif %}
{% if page.id contains "258384388" %}
Show Content
{% endif %}
{% if id == "258384388" %}
Show Content
{% endif %}
{% if id contains "258384388" %}
Show Content
{% endif %}
But still cant get it to work? I could probably also use page.handle but if the client changes the page title and/or handle, then it would mess everything up. Whereas the id wouldnt change regardless
{% if page.id == 49700733008 %}
Show Content
{% endif %}
For anyone else looking for this.
Thanks mate !
I was able to prevent a popup for a landing page by using this code on my theme.liquid...
Find:
{%- sections 'popup-group' -%}
Replace with:
{%- if page.title != "Enter Page Title" -%}
{%- sections 'popup-group' -%}
{%- endif} -%}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024