0

As the picture says I am trying to remove the three dots that follow the end of the blue sentence (shown in the photo). I am also trying to increase the numbers of characters it can reveal. Furthermore, for some reason, the blue text shows "&" and "&nspb" symbols at the end of some excerpts, I would like to get rid of these symbols, too.

The website is called: http://biidly.com/

enter image description here

I have tried adding the following code in the functions.php file:

/*---------------Removing ellipsis--------------------*/
function wp_new_excerpt($text)
{
    if ($text == '')
    {
        $text = get_the_content('');
        $text = strip_shortcodes( $text );
        $text = apply_filters('the_content', $text);
        $text = str_replace(']]>', ']]>', $text);
        $text = strip_tags($text);
        $text = nl2br($text);
        $excerpt_length = apply_filters('excerpt_length', 235);
        $words = explode(' ', $text, $excerpt_length + 1);
        if (count($words) > $excerpt_length) {
            array_pop($words);
            array_push($words, '[asda]');
            $text = implode(' ', $words);
        }
    }
    return $text;
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'wp_new_excerpt');

However, this code has not worked. I am unsure where to go from here.

I have also tried:

function wpse_180792_excerpt_more() {
    return '';
}

add_filter( 'excerpt_more', 'wpse_180792_excerpt_more' );

However, this code has not worked, either.

Any help is greatly appreciated. Thank you for your help.

closed as off-topic by markratledge, cybmeta, Pieter Goosen, shea, Mayeenul Islam Mar 14 '15 at 16:18

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Third party plugins and themes are off topic, they are better asked about at their developers' support routes. – markratledge Mar 11 '15 at 15:54
  • You need to find out what code the theme is using to output that bit of text. – TheDeadMedic Mar 12 '15 at 16:10
  • How do I find that? Sorry, this is my first time working with Wordpress. – Kelsey Mar 12 '15 at 16:12
1

Use the excerpt_more filter:

function wpse_180792_excerpt_more() {
    return '';
}

add_filter( 'excerpt_more', 'wpse_180792_excerpt_more' );
  • I put that in my functions.php page, but the ellipsis is still there. Thank you for trying. – Kelsey Mar 12 '15 at 14:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.