• Resolved Paul Coghlan

    (@paul-coghlan)


    Hi. I am working on a child theme of klasik and am having trouble removing the page title from the home page only. I have tried the following:

    Copy content-page.php into your child theme and then change <h1 class=”entry-title”><?php the_title(); ?></h1> to:

    <?php if ( !is_front_page() ) :?><h1 class=”entry-title”><?php the_title(); ?></h1><?php endif;?>

    But this does not seem to work. Any help would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • bs-2010

    (@bradenschlueter)

    If you find the page id of your homepage you can make the change in the CSS.

    .page-id-# .pagetitle {display: none;}

    The div #afterheader space and borders are still on the page though.

    EDIT:

    The following will get rid of the title and the box that it is in. Just replace ’74’ with the id of your homepage.

    /* To remove Page Titles*/

    .page-id-74  .pagetitle {display: none;}
    
    .page-id-74  .pagetitle {display: none;}
    
    .page-id-74 #afterheader{display: none; position:relative; padding-top:24px; padding-bottom:30px; margin-bottom:0px;}
    
    .page-id-74 #outerheader{border-width:0px 0px 1px 0px; border-style:none;}
    
    .page-id-74 #outermain{padding:60px 0 0px 0; border-width:1px 0px 0px 0px; border-style:none;}

    Very helpful, many thanks!

    Thread Starter Paul Coghlan

    (@paul-coghlan)

    Sorry for the late response. That worked great thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove the page title from the home page’ is closed to new replies.