Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Remove Wordpress Title From One Page?

I know this can be done with custom CSS, but I can't figure out the right way to do it.

I think I can figure it out for all of them if you show me how to do it with just the title.

For example, this is the element I want to remove: <h1 class="page-title entry-title">

I know that {display: none} is the CSS to hide an item, but how can I do it for only a specific page?

the website is: http://myinneryoga.com/strange-exotic-fruit-supplement/

like image 849
king Avatar asked Dec 11 '25 13:12

king


2 Answers

Use h1.page-title { display: none; } to hide the title, this will affect ALL pages that use the same template.

If you want to do it specifically to this post use the following:

#post-28 h1.page-title { display: none; } the post number will lock it to that page only.

like image 170
Disruptive Art Avatar answered Dec 13 '25 13:12

Disruptive Art


Based on that page, the body has classes

 <body class="wordpress... singular-page singular-page-28 layout-1c"

28 is the page id of that page, so if you just want a CSS fix for this, you can use the code below

.singular-page-28 h1.page-title{
    display:none;
}

note, if you move the wordpress to another webhost, via export/import, you'll need to look at the page_id again if it changed

like image 23
fedmich Avatar answered Dec 13 '25 11:12

fedmich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!