Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #670573

    How can I remove the brackets around the […] so it just shows as … at the end of blog excerpts?

    #671974

    Hey gerardbao,

    Please add following code to Functions.php file in Appearance > Editor

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

    Best regards,
    Yigit

    #672904

    I added that code to the functions.php.

    Now instead of “[…]” at the end of the blog excerpts, I got “[&hellip” displaying.

    Please advise. Thanks

    #673116

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Yigit

    #673411

    Login in private

    #673655

    Hi,

    I changed the code to following one

    function avia_excerpt_more_change( $more ) {
        return '...';
    }
    add_filter( 'excerpt_more', 'avia_excerpt_more_change' );

    Please review your website now

    Best regards,
    Yigit

    #673838

    It worked. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove the brackets around the … at the end of blog excerpts’ is closed to new replies.