• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

post excerpt read more link

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › post excerpt read more link

This topic is: not resolved

Tagged: read more

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 4 months ago by Susan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 30, 2017 at 6:55 am #210874
    p297
    Member

    Hi,

    I'm trying to edit the read more code for a post excerpt in my archives. Currently this is what's visible on the post '... [Read more...]' with the '[Read more...]' a hyperlink (see included URL). I'm trying to remove the ellipsis - ... - that appears before the read more link so that it just says '[Read more...]'

    I've tried adding 6 different variations of code that I've found on various help docs and forums into the functions.php file but none have worked, 1 broke the code the other 5 caused no change.

    1. No change

     /**
         * Override the default string for automatic excerpts
         * 
         * @param type $more
         * @return string
        */
        function custom_excerpt_more($more) {
            return '';// return empty string
        }
        add_filter('excerpt_more', 'custom_excerpt_more');

    2. No change

    // Add Read More Link to Excerpts
    add_filter('excerpt_more', 'get_read_more_link');
    add_filter( 'the_content_more_link', 'get_read_more_link' );
    function get_read_more_link() {
    return '...&nbsp;<a href="' . get_permalink() . '">[Read&nbsp;More]</a>';
    }

    3. No change

    function replace_excerpt($content) {
           return str_replace('[...]',
                   '&lt;div class="more-link"&gt;<a href="'. get_permalink() .'">Continue Reading</a>&lt;/div&gt;',
                   $content
           );
    }
    add_filter('the_excerpt', 'replace_excerpt');

    4. Broke the code - this code is the same in 3. with an addition to it.

    function replace_excerpt($content) {
           return str_replace('[...]',
                   '&lt;div class="more-link"&gt;<a href="'. get_permalink() .'">Continue Reading</a>&lt;/div&gt;',
                   $content
           );
    }
    add_filter('the_excerpt', 'replace_excerpt');
    
    &lt;?php function replace_excerpt($content) {
    return str_replace('[&hellip;]', '... ', $content );
    }?&gt;

    5. No change

    // Changing excerpt more
    function new_excerpt_more($more) {
      global $post;
      remove_filter('excerpt_more', 'new_excerpt_more'); 
      return ' <a>ID) . '"&gt;' . 'read more' . '</a>';
    }
    add_filter('excerpt_more','new_excerpt_more');

    add_filter('excerpt_more','__return_false');

    6. No change

    function trim_excerpt($text) {
      return rtrim($text,'[...]');
    }
    add_filter('get_the_excerpt', 'trim_excerpt');

    I've also looked in the archive.php, front-page.php, page_archive.php, single.php, and even the styles.css files to try and find where I can customize the read more in the code to remove the ellipsis but haven't found it in any of them.

    Please help!

    https://www.mexicaliblues.com/ourstories/2017/08/
    August 30, 2017 at 7:07 am #210915
    Victor Font
    Moderator

    You are using a very old XHTML theme from http://www.ebusinesscoach.com/. This is a community marketplace theme, not a Studio Press theme. Chances are good that the read more was already modified by the theme developer which is why the snippets aren't working. The theme is not available in the download archives and without looking through the code, as community volunteers, I don't think we can help you. You can either try contacting the developer for assistance or hiring someone to look through your code.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    August 31, 2017 at 5:53 pm #211004
    Susan
    Moderator

    I'm closing this thread, as it's a duplicate of this one:

    Remove ellipsis on read more

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘post excerpt read more link’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble