• 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

cpaone

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 29, 2016 at 1:06 am in reply to: Hide or remove post date on archive tempalte #177799
    cpaone
    Member

    Thanks for the help, both code samples helped me find the solution...

    Turns out the 'sp_post_info_filter' was already in use earlier in the functions file and I did not see it (I am new to this). Here is what I ended up doing to get the results I wanted...

    //* Customize the entry meta in the entry header (requires HTML5 theme support)
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    $post_info = '[post_date]';
    if ( is_archive() ) {
    $post_info = '';
    }
    return $post_info;
    }

    // Remove Post excerpt, Post Meta from Archive Pages
    add_action ( 'genesis_entry_header', 'themeprefix_remove_post_meta' );
    function themeprefix_remove_post_meta() {
    if (is_archive()) {
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    }
    }

    January 28, 2016 at 6:50 pm in reply to: Hide or remove post date on archive tempalte #177788
    cpaone
    Member

    Thanks for testing.

    I still get the same issue - a blank site

    I copy/ pasted the code to the end of my child theme functions.php file, then uploaded it (as a replacement) via ftp - do you know what I might be doing wrong here? Appreciate the support

    January 28, 2016 at 6:32 pm in reply to: Hide or remove post date on archive tempalte #177785
    cpaone
    Member

    thanks for the reply but the above code suggested to add to the php functions file actually breaks the site?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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