• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove Meta Entry Info on a Post in a Search Listing

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove Meta Entry Info on a Post in a Search Listing

This topic is: not resolved

Tagged: post meta, search listing

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by peterlaz.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 26, 2017 at 6:19 pm #208313
    peterlaz
    Participant

    I have set my blog post styling with the following CSS and it works as intended.
    see - http://plan2040.com/test-blog-post-6/

    .single .entry {
        margin: 10;
        padding: 0;
        background: #0063ff;
        border: none;
        box-shadow: none;
    }
    
    .single .entry-header {
        background: url(images/section-background.jpg) repeat 0 0;
        background-color: #333;
        border-bottom: 0px solid #ececec;
        margin: 0;
        padding: 20px;
    }
    
    .single .entry-title {
        color: #FFF;
        -webkit-transition: all 0.25s linear;
        -moz-transition: all 0.25s linear;
        -o-transition: all 0.25s linear;
        transition: all 0.25s linear;
    }
    
    .single .entry-content {
        margin: 20px;
        padding: 20px;
        color: #000;
        background: #FFF;
    }
    
    .single .entry-footer .entry-meta {
        display: none;
    }

    However, I want to remove the post date and author from the post title, and filed under entry from the footer in a search listing.
    see - http://plan2040.com/?s=test

    I tried the following CSS code but not getting the results. Any guidance will be appreciated. Thanks.

    .search-results .single .entry-title .entry-meta {
    	display:none !important;
    }
    
    .search-results .single .entry-footer .entry-meta {
        display:none !important;
    }
    http://plan2040.com/?s=test
    June 26, 2017 at 7:53 pm #208317
    Victor Font
    Moderator

    Using CSS to hide the entry meta is not optimal. Genesis provides a filter for removing entry meta:

    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    June 26, 2017 at 9:04 pm #208321
    peterlaz
    Participant

    Thanks Victor for the suggestion.
    However, it also removes the meta entry from the post itself. I just want it to be removed from the search listing only.
    Thanks.

    June 26, 2017 at 10:28 pm #208327
    peterlaz
    Participant

    I was able to achieve the desired outcome with the following codes

    
    add_action( 'loop_start', 'remove_entry_meta' );
    function remove_entry_meta() {
    
    if ( is_singular('post') )
    return;
    
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );  
    }
    
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble