-
I would like to hide the title on one page on my website (not a post). Is there any way to do this? I've tried custom CSS but can't seem to find a selector that can be limited to a single page; I can only target all titles on all pages. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
My recommendation would be to edit your theme files, and make whether a title is displayed conditional using the Theme Settings API. How comfortable are you with this? |
Beta Was this translation helpful? Give feedback.
-
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. Each page will have a unique id, class or both (eg. id="my23"). There are other ways such as:
|
Beta Was this translation helpful? Give feedback.
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:
<h1>My title to hide</h1>
"