Make the Continue Reading Post Link a Nofollow Link

  • Danielpdx

    #4297

    Hello,

    How do I make the continue reading link of a post a nofollow link?

    Thanks in advance

    Daniel

    http://www.cursodecomputacionbasica.com/

    Admin

    Syahir Hakim

    #27823

    Add this to your child theme’s functions.php file:

    function graphene_continue_reading_link() {
    global $in_slider;
    if (!is_page() && !$in_slider) {
    $more_link_text = __( 'Continue reading »', 'graphene' );
    return '</p><p><a class="more-link block-button" href="'.get_permalink().'" rel="nofollow">'.$more_link_text.'</a>';
    }
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!