Balance Theme – Excerpt Read More

Community Forums Forums Design Tips and Tricks Balance Theme – Excerpt Read More

This topic is: resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Jen Baumann 1 year, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8478

    erjdavis
    Participant
    Post count: 3

    How can I add a “Read More” link to the post excerpts when using the blog template?

    #8489

    Susan
    Moderator
    Post count: 9306

    Can you please post a link to your site? Thanks.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #8490

    erjdavis
    Participant
    Post count: 3

    Here is the link to the blog page - http://www.kristinaevey.com/blog/

    #8495

    Jen Baumann
    Keymaster
    Post count: 439

    Try this. Balance has a function in functions.php to customize the read more. add the excerpt_more line below.

    [php]/** Customize ‘Read More’ text */
    add_filter( ‘excerpt_more’, ‘balance_read_more_link’ );
    add_filter( ‘get_the_content_more_link’, ‘balance_read_more_link’ );
    add_filter( ‘the_content_more_link’, ‘balance_read_more_link’ );
    function balance_read_more_link() {
    return ‘<a class="more-link" href="’ . get_permalink() . ‘" rel="nofollow">’ . __( ‘Continue Reading’ ) . ‘</a>’;
    }[/php]

    Note: I’ve changed the title to be more descriptive.


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    #8496

    erjdavis
    Participant
    Post count: 3

    Thanks a lot, Jen!  It worked!

    #8500

    Jen Baumann
    Keymaster
    Post count: 439

    Welcome!


    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

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

The topic ‘Balance Theme – Excerpt Read More’ is closed to new replies.