WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to get rid of title on single page? (5 posts)

  1. ihaveacamaro
    Member
    Posted 1 year ago #

    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! :)

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    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

  3. ihaveacamaro
    Member
    Posted 1 year ago #

    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?

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    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

  5. ihaveacamaro
    Member
    Posted 1 year ago #

    Ok thank you for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags