Hello,
I want to delete the title on a specific page, what is the code to do it ?
I use dawn theme and my website is womber.fr (password: PROPAGANDAAA)
best regards,
A user seeks to remove the page title from a specific page on their Shopify store using the Dawn theme. An image shows the title they want to hide.
Proposed Solutions:
Multiple community members offered different CSS and Liquid code approaches:
.page-width h2[data-start='253'] with !important flag#shopify-section-template IDmain-page.liquid to conditionally hide titles using {% unless %} tags based on page title matchingThe original poster reported the first CSS solution didn’t work. The discussion remains open with no confirmed resolution, as multiple alternative approaches were suggested but not yet tested by the user.
Hello,
I want to delete the title on a specific page, what is the code to do it ?
I use dawn theme and my website is womber.fr (password: PROPAGANDAAA)
best regards,
Hi @PAUL8
Try adding this CSS under the TS > custom CSS
h2[data-start="253"][data-end="285"]{display:none}
Hope that helps.
Hello, thanks for your response, but it didn’t work…
Hello, thanks for your response, but it didn’t work…
try adding this at the end of your assets/base.css file
.page-width h2[data-start='253'] {
display: none !important;
}
Please add this code to Custom CSS in Sales channels > Online Store > Themes > Customize > Settings
#shopify-section-template--24611489808649__main .main-page-title { display: none; }
Hi @PAUL8 ,
May I suggest to update code these steps:
{% assign page_title = page.title | escape %}
{% unless page_title == 'I need to delete this' %}
{% endunless %}
If you want to ignore another page. You can add more condition in the unless
ex: Code below ignore page’s title is ‘I need to delete this’ and ‘Contact’
{% assign page_title = page.title | escape %}
{% unless page_title == 'I need to delete this' and page_title == 'Contact' %}