Jump to content
Sign in to follow this  
tuanma

Remove brackets around suffix dots on homepage

Recommended Posts

tuanma

I was hoping someone could point me to the right file where I can remove the brackets around the suffix dots on excerpts on the homepage. Any help would be great. Thanks. Tuan

Share this post


Link to post
Share on other sites
Jenny
Hi @Tuan. That is a built-in function of Wordpress but you can use it by adding some custom code. With the PageLines Customize plugin activated, go to Plugins -> Editor -> PageLines Customize -> functions.php, and add the following code to the bottom of the file: [code]function trim_excerpt($text) { return rtrim($text,'[...]'); } add_filter('get_the_excerpt', 'trim_excerpt');[/code]

Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
tuanma
Hi @simple_mama after pasting the above code, it removed the dots and brackets. However, I wanted to keep the three dots and just remove the brackets. I tried playing with the code but no luck. Any suggestions? Thanks Tuan

Share this post


Link to post
Share on other sites
Rob
Tuan, you may want to take a look at this: http://codex.wordpress.org/Customizing_the_Read_More

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×