Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
{% if page.url == "/blogs/news" %}
<div class="rows"> {% section 'featured-post' %} </div>
{% endif %}
On the front page /blogs/news I want to display a section.
But want to hide it from all following paginated pages /blogs/news?page=1 /blogs/news?page=2 etc.
Solved! Go to the solution
This is an accepted solution.
Use this instead:
{% if paginate.current_page == 1 %}
<div class="rows"> {% section 'featured-post' %} </div>
{% endif %}
B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.
Hi @maslerdanch ,
you can try to using this code:
{% if page.url contains "/blogs/news" %}
<div class="rows"> {% section 'featured-post' %} </div>
{% endif %}
That hides the section completely on all pages.
I was thinking the following but that doesn't work either.
{% if paginate.pages < 1 %}
<div class="rows"> {% section 'featured-post' %} </div>
{% endif %}
This is an accepted solution.
Use this instead:
{% if paginate.current_page == 1 %}
<div class="rows"> {% section 'featured-post' %} </div>
{% endif %}
B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.
Nailed it - thank you!
We're happy to see that our suggestion helped you solve the issue. Can you mark it as a solution?
B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.
Thanks - And subscribed! Gratefully appreciated.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025