[&hellip on Blog and Staff pages

Support Area Forums Live [&hellip on Blog and Staff pages

Viewing 6 posts - 1 through 6 (of 6 total)
URL to the page in question:
  • Author
    Posts
  • #12948
    Carolyn Komerska
    Participant

    Hello,

    Firstly, please let me say I just started using your themes with my clients a few months ago, and I love them! They’re easy to work with and well-documented.

    Secondly, I’m having a problem with [&hellip showing up on the Staff and Blog page excerpts. I’ve explored your forum and saw that you addressed it with someone using the Foundation theme, but I wasn’t sure if that same suggestion should be used with the Live theme (editing the functions.php file).

    Any advice you have would be much appreciated! The website is at:
    http://www.coastalpetsittingnh.com/. Thanks!

    Carolyn

    p.s. I saw a prior posting about adjusting the code to allow the entire bio on the Staff index page to display, which I implemented as you’ll see. However, the [&hellip still shows up on the Blog page.

    #12950
    Bill Robbins
    Moderator

    Carolyn,

    Thank you for your business first of all. Sorry for the trouble. It looks like WordPress 3.6 has adjusted how a few of my themes adjust the default excerpt that’s part of WordPress.

    You can edit the theme to take care of that (I’ll roll the fix into the next theme update so you won’t have to worry about losing the changes). Here’s what to do:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose the functions.php one.
    3. Look for this section:
      
      // Remove . . . from excerpts
      function organizedthemes_trim($text) {
      	return rtrim($text,'[...]');
      }
      add_filter('get_the_excerpt', 'organizedthemes_trim');
      
    4. Replace that with this:
      
      // Trim Excerpt . . .	
      	function organizedthemes_excerpt( $more ) {
      		return '';
      	}
      	add_filter('excerpt_more', 'organizedthemes_excerpt');
      
    5. Save your changes.

    That should hopefully remove the [&hellip that’s showing up now for you. Since the function is used in several places hopefully that will take care of them everywhere.

    If you run into any trouble, let me know.

    Have a great week,
    Bill

    #12966
    Carolyn Komerska
    Participant

    Thank you, that definitely got rid of the [&hellip code! I’m also hoping to somehow get a “…” to display so that the excerpt doesn’t end abruptly (see http://www.coastalpetsittingnh.com/blog/).

    Might that be something you’ll address when you do the next theme update?

    Thanks so much!
    carolyn

    #12967
    Bill Robbins
    Moderator

    Carolyn,

    You can adjust the snippet above so that it ends with …

    Just change it to be like this:

    
    // Trim Excerpt . . .	
    	function organizedthemes_excerpt( $more ) {
    		return '...';
    	}
    	add_filter('excerpt_more', 'organizedthemes_excerpt');
    

    and save your changes. That should give you the dots you’re looking for.

    Let me know if you have any trouble,
    Bill

    #12969
    Carolyn Komerska
    Participant

    Yay, that’s much better, thank you so much!

    #12970
    Bill Robbins
    Moderator

    Anytime. Have a great day!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘[&hellip on Blog and Staff pages’ is closed to new replies.