Archived topic
Ellipsis only on excerpt (no Read More Text or Button)
6 replies · Started by EcoDev on May 17, 2021
Hello, is it possible to just have the ellipsis at the end of an excerpt on the blog archive without the Read More label? If I delete the text in the Read More label nothing at all appears. I just want the 3 dots to show if possible?
Thanks
Hi Joel,
Can you try adding a space in the read more label field?
Let me know :)
Of course, that was easy!
Thanks Leo
Hello...sorry to bring up this old topic, but I've just realised this solution brings an accessibility issue with it...basically there is still a link there in the html where the space is and this is being flagged as an accessibility issue.
Is there any other way of including the ellipsis at the end of the excerpt without creating a link in the html?
Thanks
Remove all the content from the Read More label ie. no spaces and try adding this PHP Snippet:
add_filter('excerpt_more', 'change_excerpt_more', 100, 1);
function change_excerpt_more($more){
return '…';
}
Perfect, thanks David!
Glad to be of help!