Hide title on some pages

  • Author
  • #2442608



    I would like to be able to hide the title on some of the pages of my website. I am using the Twenty Thirteen theme. I am not familiar with CSS & I’m pretty new to wordpress.

    I have worked out how to look at my site with the web inspector tool and tried to follow the advice given here: https://en.forums.wordpress.com/topic/hide-titles-on-pages?replies=9 using the relevant page-id (page-id-151). However it did not work.

    Please can you advise what I need to do.

    Thank you.

    The blog I need help with is linesandspacesblog.com.


    Hi there, and congratulations on getting to know the web inspector a bit. It will be a very useful tool for you as you continue with your customizations.

    We can hide page titles on select pages by using the unique page id CSS body class defined in the opening body HTML tag. The page ids are unique to each site as the numbers are assigned as the pages are created, so we have to look at the opening body HTML tag (on the left in the inspector) while on the page where you want to hide the title(s). Let’s use your Home page as an example.

    Using the web inspector on your home page and looking in the HTML in the opening body tag we see this
    <body class="home page page-id-73 page-template-default...
    so the unique page id class for the home page is page-id-73. We can precede the CSS selector for the page title with that to limit the change to just that page. CSS classes in the CSS itself will need to start with a period ( . ) so it would look like this.

    .page-id-73 .entry-title {
        display: none;

    Using that as a guide, you can create CSS rules to hide the page titles on the pages you wish. And always remember, we are here to help when you need it, so if you get stuck, please let us know.



    Thank you.

    I replaced the 73 with a 151 for the relevant page and successfully hid the title.

    I can’t believe how helpful everyone is on this forum. It’s a really useful way to learn what to do and gives you the confidence to try new things.


    Hooray, and you are welcome. Please let us know if you have additional questions.

The topic ‘Hide title on some pages’ is closed to new replies.