Help to delete page title

Topic summary

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:

  • Custom CSS targeting specific data attributes - targeting the h2 element with specific data-start/end values
  • CSS added to base.css file - using .page-width h2[data-start='253'] with !important flag
  • Section-specific CSS - targeting the main page title through #shopify-section-template ID
  • Liquid template modification - editing main-page.liquid to conditionally hide titles using {% unless %} tags based on page title matching

The 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.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

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,

1 Like

Hi @PAUL8

Try adding this CSS under the TS > custom CSS

h2[data-start="253"][data-end="285"]{display:none}

Hope that helps.

1 Like

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:

  1. Go to Store Online-> theme → edit code
  2. Sections/main-page.liquid
  3. Refer the screenshot to add code below
{% 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' %}
1 Like