Home Forums Pro Themes Biography Pro Three dots

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20452
    nimuravka
    Participant

    Hi there!
    In service, biography, history… everywhere I’ve got the dots after my text. It’s just we have something more to read. I’d like to have my text exactly as it is whthout additional dots or anything. How I can kill them? 🙂 thanks!

    #20490
    wensolutions
    Keymaster

    @nimuravka, from the Appearance -> Customize go into each section that has its individual option to set the number of words limit. You need to increase these words limit so to make sure it has greater value than the content you have for each of those sections.

    For e.g. to configure for Service section go to Appearance -> Customize -> Home / Front Service Sections -> Service Options

    Hoping this would help you out !

    #20548
    nimuravka
    Participant

    Unfortunately it doesn’t work 🙁

    #20619
    nimuravka
    Participant

    ok, solved. just “…” killed in function file.

    dissapointed that your idea doesn’t work. maybe just some bugs in last version?

    #26269
    MichelleG
    Participant

    I am experiencing the same issue on my front page for Services. I have followed the support instructions to increase my word count, but that does not take away for the “…” on the last word.

    I have updated to version 2.3, but that has not solved the issue. How can I remove the 3 dots after the last word?

    #26358
    wensolutions
    Keymaster

    Hello @MichelleG

    To solve your issue at first you need to create a child theme. Below is the reference for creating a child theme.
    Child Theme

    After successfully creating and activating the child theme paste the following code in your functions.php file of the child theme

    You can also use the plugin to create the child theme . Please refer to the below link
    Child theme

    
    function biography_words_count( $length = 25, $biography_content = null ) {
    	$length = absint( $length );
    
        if ( '' != $biography_content ) {
    
            $biography_content = strip_shortcodes( $biography_content );
            $biography_content = str_replace( ']]>', ']]>', $biography_content );
            // $biography_content = strip_tags($biography_content, wpse_allowedtags());
    
            //Set the excerpt word count and only break after sentence is complete.
            $excerpt_word_count = $length;
            $excerpt_length = apply_filters( 'excerpt_length', $excerpt_word_count );
            $tokens = array();
            $excerptOutput = '';
            $count = 0;
    
            // Divide the string into tokens; HTML tags, or words, followed by any whitespace
            preg_match_all( '/(<[^>]+>|[^<>\s]+)\s*/u', $biography_content, $tokens );
    
            foreach ( $tokens[0] as $token ) {
    
                if ( $count >= $excerpt_word_count && preg_match('/[\,\;\?\.\!]\s*$/uS', $token ) ) {
                    // Limit reached, continue until , ; ? . or ! occur at the end
                    $excerptOutput .= trim( $token );
                    break;
                }
    
                // Add words to complete sentence
                $count++;
    
                // Append what's left of the token
                $excerptOutput .= $token;
            }
    
            $biography_content = trim( force_balance_tags( $excerptOutput ) );
    
            return $biography_content;
        }
    
        return apply_filters( 'biography_words_count', $biography_content );
    }

    Hope this will resolve your issue .

    You have any problem further please let us know.

    Best Regards!!

    #26542
    MichelleG
    Participant

    Thanks! I have added the Plug-in you suggested and then the content into the Function.php file and it works great.

    #26568
    wensolutions
    Keymaster

    Glad that we could help you. Please feel free to post in your queries if you have any further issues.

    Best Regards.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.