Forums

Hyperlink Headlines (4 posts)

  1. nesoccertoday
    Member
    Posted 1 year ago #

    I recently got my site approved for Google News, but was told

    In order for Google News to include your content, each headline must hyperlink to a page dedicated solely to that article, as your site does. However, when the headline on this page is an active link, we often have difficulty displaying it correctly. For example, the headline [[Bradley’s Contract Extended]] is an active hyperlink on this page: [[http://nesoccertoday.com/?p=101]].

    Making these headlines regular text, not links, will increase the likelihood that our crawler will extract the correct headlines.

    Is there anyway to make the titles not an active link?

    Thanks!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    On single.php, and maybe page.php, your titles seem to be links to themselves. This is needed of course, on index.php as that is how you get to see the full article single view. But on single and page maybe look for something like:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

    Could become

    <h2><?php the_title(); ?></h2>

    Of course, make backups before messing with anything!

  3. nesoccertoday
    Member
    Posted 1 year ago #

    Do you mean in single.php for the current theme? I can't seem to find anything related to the title in single.php in the arras theme.

  4. nesoccertoday
    Member
    Posted 1 year ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.