Skip to content

Hide title on one page #1706

Answered by gpsblues
mayanayza asked this question in Help
Sep 19, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Hi,

Since you know CSS you can edit the post template by inserting an id or class to the title that corresponds to the page id.
For exemple from this:
<h1 class="original-class">{{title}}</h1>
to this:
<h1 id="my{{id}}" class="original-class my{{id}}">{{title}}</h1>

Each page will have a unique id, class or both (eg. id="my23").

There are other ways such as:

  • create a page template without a title that you use only for pages that you don't want to show the title.
  • add a custom option to page to show or hide the title
  • use the smart replace plugin to remove a specific html tag such as "<h1>My title to hide</h1>"

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@candidexmedia
Comment options

@gpsblues
Comment options

@gpsblues
Comment options

@mayanayza
Comment options

Answer selected by mayanayza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants