• Resolved stseprounof

    (@stseprounof)


    Hi!

    Thank you for these nice theme!

    Some times I do not need page titles on the pages. How can I remove them?

    Best regards. Sergios

Viewing 11 replies - 1 through 11 (of 11 total)
  • If you post a link to your site, someone can likely help you.

    Thread Starter stseprounof

    (@stseprounof)

    Thank you WPyogi!

    https://www.stseprounof.org is one of my sites, but I have to know how to do it in the future.

    Best regards. Sergios

    It’s not hard once you understand the basic idea — which is to use CSS “display: none;” to hide the element(s). Firebug is a great tool to help you identify which code you’ll need to use to do that. But be sure that you are not changing any theme files directly — as your changes will be overwritten when the theme is updated. Instead use a child theme or custom CSS option (if your theme has it) or plug-in. Then, in this case, you’d add this code to the CSS:

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

    That removes it on pages (not posts) — if you want it off everywhere, just remove the .page. If you want it to apply to only specific pages, you can use the page specific unique page id — found in the body tag html — so for your home page given this HTML:

    <body class="home page page-id-2 . . .

    the CSS would be:

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

    `

    Thread Starter stseprounof

    (@stseprounof)

    Thank You!

    It works!

    Best regads. Sergios

    nikkireynolds

    (@nikkireynolds)

    Thank you – this was exactly what I was looking for, too!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    OMG Thanks WPyogi!
    Marking resolved.

    saritlotem

    (@saritlotem)

    great. worked for me.

    Thanks WPyogi, it works like a charm ??

    paul.a.cunn

    (@paulacunngmailcom)

    Hey all,

    just in case you wanted another way to get rid of page titles you could alternatively just place a space when you are first editing the title. Pinboard will then give no title to the page and no space for the title will be displayed on the page. This will make it so you don’t have to add css every time you want a page with no title.

    Hi all,
    This is my first post. please be gentle
    Would the above work with https://www.tainsphotos.co.uk ?page_id=145.
    This (?page_id=145) is what i would like to remove on all pages.
    Thanks in advance.
    Trev.

    Hi All
    I have sorted it by changing my permalinks
    Trev

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How I can remove page titles on th pages?’ is closed to new replies.