WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Remove page title in one page (11 posts)

  1. Neverio
    Member
    Posted 2 years ago #

    Hello

    Im trying to remove the page title in just one of my page in the theme EvoLve 2.0.7.

    Do one of you have a solutions for this?

  2. gerald@WPcustoms
    Member
    Posted 2 years ago #

    you can do it with conditional tags in page.php

    <? php if (is_page('pageslug' )) { ?>
    // title removed
    <?php } else { ?>
    <h1><?php the_title(); ?></h1>
    <?php } ?>
  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Far better to just hide it with CSS.

  4. mrcangrejero
    Member
    Posted 2 years ago #

    OK. I'll bite. How do you hide it with CSS?
    Thanks!

  5. egado
    Member
    Posted 2 years ago #

    Every Post or Page has n ID... find out the right id and edit your css...

    #post-THEPOSTID .entry-title {display: none; }

    maybe .entry-title isnt used in your theme... so it might be h1 or h2 or h3 or something else... i need to have a closer look to your blog for exact infos ;)

  6. mrcangrejero
    Member
    Posted 2 years ago #

    Thanks, egado!

  7. fabthi
    Member
    Posted 2 years ago #

    I was looking for the same issue and luckily found this open thread.

    Every Post or Page has n ID... find out the right id and edit your css...

    I only have one page in my website, what should I look for in the css to hide the page title?
    And how/where do I retrieve the page ID?
    thanks

  8. anagai
    Member
    Posted 2 years ago #

    Look for the page id in the html body tag class attribute. Start there then drill down to the h1 tag you want to hide. Do something like this in your css file:

    body.some-page-title .headline_area h1 {display: none;}

  9. anagai
    Member
    Posted 2 years ago #

    This is version 3.3 and we still have to do this hack?? un-believable.

  10. fabthi
    Member
    Posted 2 years ago #

    Anagai, thanks it does work!

    This is version 3.3 and we still have to do this hack?? un-believable.

    Being a relatively new WP user I shouldn't be entitled to judge but I agree with you; I would expect some options to be available as standard in the dashboard.
    For instance, I would say that font size should be made selectable as well.

  11. maurizio04
    Member
    Posted 2 years ago #

    This is version 3.3 and we still have to do this hack?? un-believable.

    I think a backup/restore WORKING is more useful...just wait until you have to change ISP for your site and you will understand...

Topic Closed

This topic has been closed to new replies.

About this Topic