Adding Ellipsis to all Posts/Recent Posts on Balance

Community Forums Forums Design Tips and Tricks Adding Ellipsis to all Posts/Recent Posts on Balance

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6449

    pixelpointpress
    Participant
    Post count: 5

    Hi all,

    I had a support request today regarding the Balance theme and was asked to add the results here in case others can use them.

    Our client wanted the theme to display an ellipsis on the main post and recent posts in the sidebar in addition to the four other posts in the grid on the home page. His goal was a consistent look and feel across the home page.

    In functions.php, edit the Read More text with the following code:
    /** Customize ‘Read More’ text */
    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 ‘[&hellip;]<br /><a href=”‘ . get_permalink() . ‘” rel=”nofollow”>’ . __( ‘Continue Reading’ ) . ‘</a>’;

    }

    Hope that helps.

    #6456

    Susan
    Moderator
    Post count: 9306

    Thanks for posting that!


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

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

The topic ‘Adding Ellipsis to all Posts/Recent Posts on Balance’ is closed to new replies.