Forums

[resolved] Removing hyperlink from title in single posts only? (3 posts)

  1. pac10dave
    Member
    Posted 2 years ago #

    Hi everyone, sorry I'm so oblivious with all this stuff!

    Here is my website: http://www.allpac10.com

    As it is laid out, it encourages you to click on either the title or the "continue reading", since the articles are long we make use of the "more" tag.

    So I want the link to stay on the main page and categories and tags, but when you actually click on the title or "continue reading" and get to the article itself (Example: http://www.allpac10.com/pac-10-position-breakdown-wide-receiver-arizona-state/), here I DON'T want this to be a hyperlink to the article you are already on, and instead just be plain text.

    Hope this makes sense. Thank you!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try editing single.php and change:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Post <?php the_ID(); ?> - permanent link"><?php the_title(); ?></a>

    to

    <?php the_title(); ?>

  3. pac10dave
    Member
    Posted 2 years ago #

    Worked perfectly, thanks for the quick response esmi

Topic Closed

This topic has been closed to new replies.

About this Topic