• By default after publishing a page, the page title show in the page. I want to remove it. NOT WANT TO REMOVE FROM TOP BAR TITLE. Just from the page.

    I used this this css

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

    But it takes the titles out of the search results, therefore you cannot click on the search results. How do i keep the title in the search results but stop displaying the title on the page.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator James Huff

    (@macmanx)

    Try a plugin like https://www.ads-software.com/plugins/wordpress-seo/ which allows you to provide a special title specifically for search results.

    Thread Starter sunnyd121

    (@sunnyd121)

    I did but, the title still doesn’t show up.

    please post a live link to a page of your site, to allow the helpers here to investigate the involved CSS.

    for example, assuming your theme uses body_class(), a page might also have the CSS class .page-template-default on the static page, but not on the search results; you could use that to make your CSS more specific.

    edit:
    PS
    what theme are you using?

    Is the homepage the place you want to remove the title from?

    In that case:

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

    Moderator James Huff

    (@macmanx)

    I did but, the title still doesn’t show up.

    Changes are not made in Google’s index immediately. They have the entire internet to worry about.

    If you are setting an “SEO Title” with the Yoast SEO plugin, Google will *eventually* list that as a title. You will most likely notice it first with your next published post.

    I’m pretty sure he’s talking about the search results on his website, not the search results on Google.

    Moderator James Huff

    (@macmanx)

    Ah, sorry about that!

    Thread Starter sunnyd121

    (@sunnyd121)

    I am using Zerif Lite, I want to remove the titles from the subpages, not the homepage, But when I use .page .entry-title { display: none; } .
    The title from the wordpress search disappears as well

    Moderator James Huff

    (@macmanx)

    Did you try what wpnewbs suggested?

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

    Try this first:

    body.page .entry-title { display: none; }

    Your original code targets all elements with the class of “page”, and you want to target the body only.

    If that doesn’t work out the:

    body[class*="page-template-"] .entry-title { display: none; }

    The body on pages receives a class “page-template-TEMPLATENAME” which is applied only to pages, so the code above will target only pages.

    Thread Starter sunnyd121

    (@sunnyd121)

    thanks will do. will let you know if i have any issues

    Thread Starter sunnyd121

    (@sunnyd121)

    what would i use if i want a specific page to not have a title

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Don't want to show the page title, but keep page title in search results.’ is closed to new replies.