Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #67064
    219inc
    Member

    Hi – excellent free theme, thanks! My site is showing 2 titles on every page, because i start each page with a H1 … so it’s showing the page title (with link to itself) and the h1. this looks funny. I think the page title is more important for SEO but i’m not sure? And if I simply delete the H1 from my pages, how can i remove the link from the page title? e.g. http://www.219inc.com/www.guytronix.com/

    #67091
    Sakin
    Keymaster

    @219inc: But why are you adding in extra h1. The page tile is already in h1 tag. So, no need to add in. I suggest you to remove that extra h1 tag from your page. Just edit your page and remove extra title in your content and keep the title.

    #67104
    219inc
    Member

    ok i looked at the code, i can see now that the page creates it’s own H1 tag, so I can get rid of my own H1 tags – but how can I remove the link that is automatically created?

    <h1 class="entry-title"><a href="http://www.219inc.com/www.guytronix.com/speakers/" title="Permalink to Speakers" rel="bookmark">Speakers</a></h1> << HOW DO I REMOVE THE LINK? THE PAGE LINKS TO ITSELF, I WOULD LIKE TO REMOVE THIS.

    #67106
    Sakin
    Keymaster

    @219inc: You can hide that by adding in the following css in “Appearance => Theme Options => Custom CSS” box:
    #content .entry-header { display: none; }

    But if you want to remove it, then you need to build child theme. For child theme, refer to http://catchthemes.com/blog/create-child-theme-wordpress/. You can also download child theme from there. Then you can copy content-page.php file to your child theme and remove the following code:

    <header class="entry-header">
    	<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'catch-evolution' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    </header><!-- .entry-header -->
    #67109
    219inc
    Member

    So the only way to remove the permalink, but still keep the automatically generated H1 text, is to create a child theme? Thanks! excellent support!

    #67120
    Sakin
    Keymaster

    @219inc: Yes, you are right. If you only want to remove permalink then replace following code
    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'catch-evolution' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>

    with the following:
    <h1 class="entry-title"><?php the_title(); ?></h1>

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Title and H1 – which to remove/how to remove?’ is closed to new replies.