• The H1 header tag in the posts automatically include a hyperlink to the URL on which it is posted. This is wasting my crawl allowance and does not provide a useful experience for the user.
    Does anyone know how I can switch this off?

    Thanks,
    Helene

Viewing 1 replies (of 1 total)
  • Hi, Helene:

    You first want to create a child theme. Then make a copy of the single.php file from the parent theme’s folder into your child theme’s folder. Make the following change to your child theme’s single.php file:
    From this:

    <h1 class="post-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>

    to this:

    <h1 class="post-title"><?php the_title(); ?></h1>

Viewing 1 replies (of 1 total)
  • The topic ‘Post H1 automatically links to the post URL’ is closed to new replies.