Site logo

Archived topic

How to add 3 dots at the end of excerpt

10 replies · Started by Sima on November 25, 2020

Viewing posts 1–11 of 11

How to add ... at the end of excerpts before read more?

Hi there,

the ellipses ( 3 dots ) are the default behaviour of the automatic excerpt.
Are you adding a manual excerpt ?

Share a link to your site so i can see the issue.

No. I am not adding a manual excerpt but the 3 dots is not displayed.

Hmm that's weird.

Can you disable all plugins except GP Premium for me to take a closer look?

Thanks :)

done

thanks :)

I now noticed that this is due to the below code that I am using in order to convert the read more button to text:
if ( ! function_exists( 'generate_custom_blog_excerpt_more' ) ) :
/**
* Prints the read more HTML
*/
add_filter( 'excerpt_more', 'generate_custom_blog_excerpt_more', 100 );
add_filter( 'the_content_more_link', 'generate_custom_blog_excerpt_more', 100 );
function generate_custom_blog_excerpt_more( $more ) {
$generate_settings = wp_parse_args(
get_option( 'generate_blog_settings', array() ),
generate_blog_get_defaults()
);
return '

';
}
endif;

I now noticed that this is due to the below code that I am using in order to convert the read more button to text:

Not sure if I fully understand. The read more is text by default and there is an option in the customizer to turn it into a button.

Can you remove that code first?

I did and it is working. thanks

No problem :)

This archived topic is closed to new replies.