• rookhaven

    (@rookhaven)


    I have this code on two sites, exactly the same code and version of wordpress:

    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '...<br/><br/><a class="back-to-profile" href="' . get_permalink() . '">Full Bio</a>';
    }

    It works on one and not the other. Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clarion Technologies

    (@clarionwpdeveloper)

    Try this one may be it will work

    function et_excerpt_more($more) {
        global $post;
    return '...<br/><br/><a class="back-to-profile" href="' . get_permalink() . '">Full Bio</a>';
    }
    add_filter('excerpt_more', 'et_excerpt_more');

    Michael

    (@alchymyth)

    It works on one and not the other. Any thoughts?

    are you also using the same themes in both sites?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘modify_read_more_link doesn't work’ is closed to new replies.