WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts Widget
How to modify the [...] (2 posts)

  1. creacomdesign
    Member
    Posted 3 years ago #

    Hi,

    I would like to replace the " [...] " at the end of the excerpt by a "read more" link, is it possible? And where can I modify this?! I have been looking in the code of the category-post.php file but can't find where it's hidden :o)

    Thanks a lot for your ideas and help.

    Chris

  2. magicsun
    Member
    Posted 3 years ago #

    I use this to overwrite the [...] for all posts. This is because the only time i use excerpts are inside this widget.

    function new_excerpt_more($more) {
           global $post;
    	return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    Add that to your functions.php file. Then change the return to what you like. Now it links to the post itself.

    If you only need to edit this for the widget, i'm not sure either. Couldn't find the [...] in the plugin, because it's the default from wordpress. I'm pretty sure you can add some coding to the plugin to alter it, but I couldn't figure it out myself ... Sorry !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic