All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

Read more link into button?

  • # January 26, 2013 at 7:46 pm

    I’m trying to change the read more link on my wordpress post excerpts from a read more link to a button.

    is this possible? if so how could I achieve this?

    I’m using the

    < ?php the_excerpt(''); ?>

    and my function is

    < ?php // Changing excerpt more
    function new_excerpt_more($more) {
    global $post;
    return ‘ 
    ID) . ‘”>’ . ‘Read More »’ . ‘‘;
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    # January 26, 2013 at 7:47 pm

    hmm my function didn’t show up properly, anyway I’m sure some of you get the idea?

    Thanks for the help if anyone can help me out on this.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed