WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
[resolved] How I can remove page titles on th pages? (12 posts)

  1. stseprounof
    Member
    Posted 1 year ago #

    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

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    If you post a link to your site, someone can likely help you.

  3. stseprounof
    Member
    Posted 1 year ago #

    Thank you WPyogi!

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

    Best regards. Sergios

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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;
    }

    `

  5. stseprounof
    Member
    Posted 1 year ago #

    Thank You!

    It works!

    Best regads. Sergios

  6. nikkireynolds
    Member
    Posted 1 year ago #

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

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

    OMG Thanks WPyogi!
    Marking resolved.

  8. saritlotem
    Member
    Posted 1 year ago #

    great. worked for me.

  9. Shaink
    Member
    Posted 1 year ago #

    Thanks WPyogi, it works like a charm :)

  10. paul.a.cunn
    Member
    Posted 1 year ago #

    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.

  11. trevorford
    Member
    Posted 8 months ago #

    Hi all,
    This is my first post. please be gentle
    Would the above work with http://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.

  12. trevorford
    Member
    Posted 8 months ago #

    Hi All
    I have sorted it by changing my permalinks
    Trev

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.