Support » Fixing WordPress » How to get rid of title on single page?

  • Resolved ihaveacamaro

    (@ihaveacamaro)


    Hello,

    On my home page, there is a title called “home” at the very top. I would like to get rid of this.

    I inspected the element and saw this:

    <h1 class=”entry-title pagetitle”>home</h1>

    Unfortunately, I have no idea what CSS I need to input to get rid of that.

    How would I get it to instead display nothing and have the beginning of the page start where the title is now?

    http://www.howtodetailmycar.com/

    Thanks in advance! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You just want to hide the Home title on that one page?

    .page-id-9 .entry-title {
         display: none;
    }

    Added to your style.css (or custom css if available) should do it

    Thanks Voodoo, that did it.

    In the future how would I know what CSS code to use? IE how did you know to put .page-id-9?

    The body class within your source code outputs all sorts of information, depending on what page you are looking at…

    So when I view your source code I can find

    <body class="home page page-id-9 page-template-default custom responsive pagelines default full_width ">

    Which gives us a variety of tags to work with, depending on conditions, like page, logged in, template, etc. Some of these are WP built in, some are theme custom

    Ok thank you for your help 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get rid of title on single page?’ is closed to new replies.