Home › Forums › Pro Themes › Biography Pro › Three dots
- This topic has 7 replies, 3 voices, and was last updated 7 years, 12 months ago by wensolutions.
-
AuthorPosts
-
October 10, 2016 at 7:43 am #20452nimuravkaParticipant
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!October 10, 2016 at 2:12 pm #20490wensolutionsKeymaster@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 !
October 11, 2016 at 6:43 am #20548nimuravkaParticipantUnfortunately it doesn’t work 🙁
October 11, 2016 at 3:49 pm #20619nimuravkaParticipantok, solved. just “…” killed in function file.
dissapointed that your idea doesn’t work. maybe just some bugs in last version?
December 20, 2016 at 10:08 am #26269MichelleGParticipantI 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?
December 21, 2016 at 2:39 am #26358wensolutionsKeymasterHello @MichelleG
To solve your issue at first you need to create a child theme. Below is the reference for creating a child theme.
Child ThemeAfter 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 themefunction 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!!
December 23, 2016 at 1:42 pm #26542MichelleGParticipantThanks! I have added the Plug-in you suggested and then the content into the Function.php file and it works great.
December 24, 2016 at 3:48 am #26568wensolutionsKeymasterGlad that we could help you. Please feel free to post in your queries if you have any further issues.
Best Regards.
-
AuthorPosts
- You must be logged in to reply to this topic.