WordPress.org

Ready to get started?Download WordPress

Forums

Hide Page Title on one page? (8 posts)

  1. CBKat
    Member
    Posted 2 years ago #

    I want to hide the title on a photo gallery which is embedded into a page. I see a lot of "add this to your CSS - #post-982 h2 {display: none;}" - changing the post # to the page...but this isn't working on mine. Maybe thats the old method? I'm not sure.

  2. Can you provide a link to your site?
    More specifically, the link of the said page and what title.

  3. CBKat
    Member
    Posted 2 years ago #

  4. CBKat
    Member
    Posted 2 years ago #

    You can see in orange it says Photo Gallery, I'd like to remove that as there are breadcrumbs being displayed below it that say it as well. No need to have two

  5. chadrew
    Member
    Posted 2 years ago #

    This isn't working on yours because you have <div class="post"> and no post ID in there. You could edit your - page template, was it? - and put this in there <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> then style in your CSS as you described.

  6. CBKat
    Member
    Posted 2 years ago #

    So, replace <div class="post"> with <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> then change that CSS bit I posted above?

  7. chadrew
    Member
    Posted 2 years ago #

    Yes, try that - but of course, your page ID could be different than 982, so use the real number :)

  8. CBKat
    Member
    Posted 2 years ago #

    I was finally able to try this out today - with the correct post ID. And it didn't work. Any other suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.