Character Limit on Staff Page

Support Area Forums Umami Character Limit on Staff Page

Viewing 10 posts - 1 through 10 (of 10 total)
URL to the page in question: http://mfkrestaurant.com/staff
  • Author
    Posts
  • #20390
    john worsham
    Participant

    I can’t seem to find the setting to change the character limit for the Staff List page for each staff ember.

    Also, the “…more” or “Read More” links are not appearing.

    Thanks.,

    #20392
    Bill Robbins
    Moderator

    Hey John,

    The staff listing uses WordPress’ excerpt function. To change its character count and other attributes, I would use a plugin like Advanced Excerpt to handle that.

    Let me know if you run into any trouble there.

    Bill

    #20394
    john worsham
    Participant

    Thanks. Any thoughts on getting the “Read More” link to show? Thanks.

    #20395
    Bill Robbins
    Moderator

    I believe the plugin has an option to add and customize a read more link for the end of the excerpt. If it won’t let you add one, let me know.

    #20416
    john worsham
    Participant
    This reply has been marked as private.
    #20418
    Bill Robbins
    Moderator

    Sorry John. There is a function in the theme to trim off the […] that WordPress automatically adds to the end of the excerpt. It may be interfering with the plugin. Here’s how to take that out:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose functions.php
    3. Delete this section:
      
      // Filter Excerpt to remove [...]
      	function organizedthemes_excerpt_more( $more ) {
      		return '';
      	}
      	add_filter('excerpt_more', 'organizedthemes_excerpt_more');	
      
    4. Save your changes.

    See if that changes things for you.

    #20458
    john worsham
    Participant
    This reply has been marked as private.
    #20459
    Bill Robbins
    Moderator

    Well sorry the plugin didn’t do the trick. We can always do this the old fashioned way. In place of the snippet we deleted above, add this in its place:


    (Be sure to copy that from the support site directly and not the notification email.)

    You can replace the Read more... with the text you’d like to have as a link. Just be sure to leave the space before the first word so that there will be a natural space in your text. You can also adjust the length of the excerpt by changing the 120 to the number of words to use (the default is 55).

    Let me know how that goes,
    Bill

    #20472
    john worsham
    Participant
    This reply has been marked as private.
    #20480
    Bill Robbins
    Moderator

    Anytime John. Have a great week.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Character Limit on Staff Page’ is closed to new replies.