Excerpt: 3 dots to any symbol

Posted in: Newspaper
Post count: 49

Hello everybody
I have a question.
How to change 3 dots on excerpt title and in the post (modul) to any symbol or empty?
I want to change 3 dots to 1 or remove any symbol altogether.
Example:
https://a.radikal.ru/a24/1902/a5/eb97be38786e.png

What needs to be written in the file function.php or anywhere else?
I tried to apply this code in function.php, but it did not work:

function new_excerpt_more($more) {
global $post;
return '';
}
add_filter('excerpt_more', 'new_excerpt_more');

Thanks for the help 🙂

  • This topic was modified 7 years by mRelby.
  • This topic was modified 7 years by mRelby.
  • This topic was modified 7 years by mRelby.
  • This topic was modified 7 years by mRelby.
  • This topic was modified 7 years by mRelby.
Post count: 35449

Hi,

In order to change or remove those 3 dots you’ll need to edit the file themes
wp-content/themes/Newspaper/includes/wp_booster/td_util.php
-> https://www.screencast.com/t/LFzAw868V
-> https://www.screencast.com/t/BP6XQosac

Hope this will help you!
Thanks.

Post count: 49

this line of code:
if (trim($excerpt) == '...' {
change the 3 dots in the excerpt post AND Title post

Post count: 49

I found. But to change 3 dots, need to make changes to 768 line, but not to 778, as indicated on your screenshot.
https://a.radikal.ru/a12/1902/b9/2b5ac6766161.png

Post count: 35449

Hi,

Yes the code that need to be change is that, is possible to be a different line because I made some changes in theme and maybe I forget to revert to the original place of code in file.

Thank you for your understanding!

Post count: 49

And thank you for your help.
This topic can be closed. Thx 😉

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.