WordPress.org

Ready to get started?Download WordPress

Forums

Biznez Lite
How to disable page titles for selective wordpress pages (3 posts)

  1. haseeb007
    Member
    Posted 10 months ago #

    I want to disable page titles for only some of my wordpress pages.

    For example the post id for one of my pages is : post-5 and I added the following css code but it didn't help:

    #post-5 page-title {
      display: none;
    }

    So plz tell me what is supposed to be the correct code for this purpose.

    Thanks

  2. Gunjan Rai kanungo
    Member
    Posted 10 months ago #

    Hi Haseeb,

    Please use this CSS code

    .page-id-5 .page-title {
      display: none;
    }

    for hide page title.

    Please let me know if it is work.

    Best,
    Gunjan

  3. dennisdbn
    Member
    Posted 10 months ago #

    Hi Haseeb,

    Had you thought about creating a new page template?

    In the new page template you could remove the page title, then use the original template or the new template on each page depending on whether you want the title or not.

Reply

You must log in to post.

About this Theme

About this Topic