• I am using theme Twenty-Ten ver 1.3

    I need to remove the entry-title from the static front page only.

    I have found a few forum posts that explain how to do this, but all involve editing the page.php file – which has more stuff in it than what I have. One post identified it as version 1.1, so I guess the updates they made removed this option.
    It had to do with physically altering the h2 tags in the page.php file, but there are no h2 tags in the current version of this theme.
    I tried adding the following to header.php

    <?php if ( is_front_page() ) {?>
    
    <style type="text/css">
    h1.entry-title {display: none;}
    </style>
    
    <?php }?>

    but that didn’t do anything. (Yes, it uses h1 tags in this version.)
    Help?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • wpismypuppet

    (@wordpressismypuppet)

    I don’t see an “entry-title” anywhere in the theme, but I do see:

    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</<?php echo $heading_tag; ?>>

    This seems to add an h1 to the home page of the site… if this is what you are referring to, then change it to this:

    <?php if( !is_home() || !is_front_page() ) : ?>
    				<div id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</div><?php endif; ?>
    Thread Starter SaladGoat

    (@saladgoat)

    Judging by the placement of that code, I assumed it had to do with the site title, so I left it alone.

    I was looking to affect the post/page title.

    I say “was” because I realized that what I needed to do could be accomplished in a different – and incredibly easy – way.

    I won’t share my solution, because it will not help others who actually want to remove the post/page title.

    BTW I realize now that calling it “entry-title” was probably misleading. That is the css class for the h1 tag on the post/page title. Sorry about that. Trying to say everything at once and leaving out key details!

    Thanks for trying!

    Just mod the css for title and include display:none

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