• Resolved sagarchaudhuri

    (@sagarchaudhuri)


    I need help with a CSS code to hide only the page title not the titles of posts on the page.

    .home .entry-title {
    display: none;
    }

    The above code is removing not just the page title but the titles of the posts associated with the page

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Kindly clarify where is this “page title” on your homepage? Is it the “GAME-CHANGING GLOBAL HR DIGITAL PLATFORM” text? That seems to be coming from some page builder, and not the native WordPress page title.

    Thread Starter sagarchaudhuri

    (@sagarchaudhuri)

    @gappiah The page title is already hidden due to the CSS below:

    .home .entry-title {
    display: none;
    }

    But the post titles at the bottom of the page are also hidden. I want to display them.

    Assuming the “page title” in question is displayed inside an H1 tag (and the post titles at the bottom DO NOT use H1), then you can use something like:

    .home h1.entry-title {
    display: none;
    }

    UPDATE:

    I looked closer at your homepage, and I see the page title is an H1 element with a class of entry-title. This is the only single time this class name is used on the homepage. The two posts at the bottom have H2 titles with the class name post-title. So I don’t see why your original CSS code would be hiding the titles of these bottom posts as well.

    • This reply was modified 3 years, 10 months ago by George Appiah.
    Thread Starter sagarchaudhuri

    (@sagarchaudhuri)

    @gappiah Thanks. It’s working fine. What I was thinking were the image titles were actually the H1 headings of the posts ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Homepage title without disabling post titles’ is closed to new replies.