Change read more text

Hi there,
we have a simple question. :slight_smile: Where can we have change text “read more” to something else in Blog section.

Thanks a lot
Michael

Hi @compania123,

Thanks for reaching us.

You can change the Read More text on the blog page. To do so, you just need to add a piece of code at functions.php of the theme.

function new_excerpt_more($more) 
{
    $stack = x_get_stack();

    if ( $stack == 'integrity' ) {
      return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
    } else if ( $stack == 'renew' ) {
      return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
    }
}
add_filter('excerpt_more', 'new_excerpt_more');

Remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We do not provide support for custom codes that means we can’t fix it in case it conflicts with something in your site nor will we enhance it.

Hope it helps.

Thanks

Thanks a lot for your help!
Michael

Hi @compania123,

Glad to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.