• Resolved al1enik

    (@al1enik)


    Hello,
    I have a problem with three dots when using “Read more” in a post on the home page.
    <div class="excerpt-text">text text text text...</div>

    I have already tried many solutions by typing scripts in functions.php and using the “Snippets” plugin. Without results. Any ideas on how to remove / disable it. Without violating the “Read more” concept. From what I can see, 3 dots are represented as &hellip; and are added to the end of the text after which the “Read more” tag is set

    EDIT.
    I tried, among others, this

    function sydney_child_elipsis($content) {
    	return str_replace('[&hellip;]', ' ', $content);
    }
    add_filter('the_excerpt', 'sydney_child_elipsis');
    • This topic was modified 4 years, 3 months ago by al1enik.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    You can try to use the Advanced Excerpt plugin, here is a link:
    https://www.ads-software.com/plugins/advanced-excerpt/

    Please feel free to ask any other questions that you might have.

    Kind Regards, Roman.

    Thread Starter al1enik

    (@al1enik)

    Unfortunately it did not help. Any other ideas? I was looking in the code but any change does not introduce anything.

    Thread Starter al1enik

    (@al1enik)

    I added this function to my functions.php file

    function replace_content( $content) {
        $content = str_replace(array( '[&hellip;]', '[...]', '...' ), '', $content);
        return $content;
    }
    add_filter('the_content','replace_content');

    Works, but using '[&hellip;]', '[...]', '...' in a post as text causes it to be replaced with a blank character.

    Thanks 4 help but i found solution myself!

    • This reply was modified 4 years, 3 months ago by al1enik.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘excerpt-text remove dots’ is closed to new replies.