• Is there any way I can stop the title of each page appearing as a link? I find it really annoying that when you scroll over a title the pointer changes to a little hand and the title changes colour. It gives the impression that the title is a link to something else and its irritating to waste time clicking on it only to find that nothing happens.

    Any ideas anyone?

    Nick

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you go to single.php in your theme files, you will be able to locate the link with the title in it.

    It will look something like:

    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

    You would change it to:

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

    I hope this helps you,
    ~Shane Hudson

    Thread Starter Nick Wingfield

    (@nick-wingfield)

    Hi Shane

    Thanks for your help but the new code doesn’t make any difference. I don’t know if its because my code is slightly different to yours. Mine currently says:

    <h2 class="art-postheader">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
    <?php the_title(); ?>
    </a>
    </h2>

    I tried deleting

    <a href="<?php the_permalink() ?>"

    but that didnt work so I tried deleting

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">

    followed by
    </a>
    No joy there I’m afraid.
    Any other ideas?
    Is it something I’m doing wrong?

    Thread Starter Nick Wingfield

    (@nick-wingfield)

    Hi Shane

    Just tried deleting the latter code from ‘pages.php’ as well as ‘single.php’

    IT WORKS!

    Thanks for all your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I stop titles appearing as links?’ is closed to new replies.