Changing the […] in Categories…

Community Forums Forums General Discussion Changing the […] in Categories…

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Debra Scott 1 year, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46728

    riggie11
    Participant
    Post count: 13

    Hi everyone,

    On this page of the news theme, http://riggiefreyer.com/category/sports-performance

    I want to change the […] to “Read More…”

    I added the code below to my functions.php file, but it still does not work…

    Any idea what I still need to do to make it work?

    thanks,

    Riggie

    /** Modify the Genesis content limit read more link */
    add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
    return ‘… <a class=”more-link” href=”‘ . get_permalink() . ‘”>Read More</a>';
    }

    http://riggiefreyer.com/category/sports-performance
    #46730

    Debra Scott
    Moderator
    Post count: 132

    try this

    [php]// Replaces the excerpt "more" text by a link
    function new_excerpt_more($more) {
    global $post;
    return ‘<a class="moretag" href="’. get_permalink($post->ID) . ‘"> Read the full article…</a>';
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);[/php]


    need help with your business or personal website? Contact me at Fat Cat Designs

    #46786

    riggie11
    Participant
    Post count: 13

    Thanks Debra, it works perfectly now!

    #46790

    Debra Scott
    Moderator
    Post count: 132

    You’re welcome!


    need help with your business or personal website? Contact me at Fat Cat Designs

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Changing the […] in Categories…’ is closed to new replies.