Hide page title on one page

Solved
New Member
5 0 0
Yes, that is the best email.
0 Likes
New Member
1 0 0

Hi Ninthony, 

 

I have the same issue but my theme is Pipeline, unfortunately I tried what you suggested and the Header remains but moves aligns to the left. I have probably done something wrong in the code: 

 

<!-- /templates/page.liquid -->

{% section 'page-images' %}

<div class="wrapper page-margin">
<div class="grid">
<div class="grid__item large--two-thirds push--large--one-sixth">
<h1 class="text-center h2 templateTitle" style="display:none;">
<div class="section-header text-center">
{{% unless page.handle == "super-secret-title" %}}</h1>
<h1>{{ page.title }}</h1>
<div class="rte">
{{ page.content }}
</div>
</div>
</div>
</div>

 

Any advise would be greatly appreciated. 

 

Kind Regards,

 

Greg

0 Likes
Highlighted
Astronaut
1003 129 235

Yeah you can't just use "super-secret-title" haha, that would be an interesting practice for shopify to follow. That was just an example if my page was named "Super Secret Title". You need to use the title of your page, but as a handle. Handles are all lowercase with dashes between spaces. So if you were trying to hide the title on the "About Us" page, you would do:

 

{% unless page.handle == "about-us" %}

{{ page.title }}

{% endunless %}
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes