WordPress.org

Forums

[Plugin: Yet Another Related Posts Plugin] Change "permanent link" to my own (6 posts)

  1. darthmortar
    Member
    Posted 5 years ago #

    I cant find witch file to change so that YARPP don't show "permanent link to", but instead my own chosen text, when hoovering a link.

  2. You can do this with a YARPP template.

    http://mitcho.com/blog/projects/yarpp-3-templates/

  3. Jose B
    Member
    Posted 5 years ago #

    I tried finding the answer to this same question for such a long time that I felt like throwing my laptop off the roof of my building. But instead I decided to play around with the Index.php file, and I think I figured it out. This is what I did:

    A few lines from the top of Index.php file, there's a few lines of text inside an <h2> like this:

    <h2 class="YourClass">
    <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>

    Change the words "Permanent Link To," to whatever you want, such as "Read." This worked for me and I suspect it should work for anyone.

    I hope this answers this question once and for all. If not, well, then take your laptop and throw it off the roof of your building.

  4. @Linkaq I'm glad that worked for you. It would be most natural to put that code in a YARPP template rather than the theme so you ensure that it gets displayed with the related posts.

  5. Jose B
    Member
    Posted 5 years ago #

    Um, what is a YARPP template? So that what gets displayed with the related posts? I'm not sure what you mean right now.

Topic Closed

This topic has been closed to new replies.

About this Topic