• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • PSD to Genesis
  • Personalized Genesis Child Theme
  • Custom Website
  • Rainmaker
  • Genesis Customizations

Christoph Herr

Solutions For Your Online Business

  • Home
  • Articles
  • Recommendations
  • About
  • Praise
  • Contact
  • Schedule a Call

Remove Entry content display option from the Genesis Theme Settings for Content Archives

Last updated on August 5, 2016 by Christoph Herr Leave a Comment

After yesterday’s post, I got a few inquiries on how to remove the entry content display option from the Genesis Theme Settings, instead of entry excerpt.

In other words, how to remove the option to show the complete post content and only allow excerpts.

You only need to change one word: ‘excerts’ to ‘full’

add_filter( 'genesis_archive_display_options', 'ch_remove_excerpts_from_content_archive_display_option' );
/**
 * Removes the Entry excerpts display option from Genesis Theme Settings Content Archives
 * box.
 *
 * @param  array $archive_display Existing display types.
 * @return array          Amended display types.
 */
function ch_remove_excerpts_from_content_archive_display_option( array $archive_display ) {
    if ( isset( $archive_display['full'] ) ) {
            unset( $archive_display['full'] );
    }
    return $archive_display;
}

 

Share this:

TwitterFacebookPinterestLinkedInEmail

Filed Under: Code Snippets

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Getresponse Email Marketing WordPress Speed Test

Subscribe to my newsletter

Please enter your information here:

I hate spam. Your information is save.

Latest Posts

WordPress Black Friday & Cyber Monday Deals

Once again it´s time for WordPress Black Friday & Cyber Monday Deals. Like last year, I have … [Read More...] about WordPress Black Friday & Cyber Monday Deals

Cafe Pro - sticky menu and image logo - end result

Add a logo to the sticky menu of Cafe Pro

A member of the Studiopress forum asked how to show a logo in the after header menu (primary … [Read More...] about Add a logo to the sticky menu of Cafe Pro

Smart Passive Income Pro screenshot

Remove the featured image from the homepage of Smart Passive Income Pro

Studiopress just released a new child theme for the Genesis Framework, called Smart Passive Income … [Read More...] about Remove the featured image from the homepage of Smart Passive Income Pro

Footer

StudioPress Theme of the Month

Copyright © 2021 · Magazine Pro Theme On Genesis Framework · WordPress · Log in