• 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

Hiding tags and categories on post excerpts on homepage- metric theme

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 › Hiding tags and categories on post excerpts on homepage- metric theme

This topic is: not resolved

Tagged: hiding categories on excerpts, metric theme

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 8, 2014 at 6:19 am #108516
    L_555
    Member

    Hi there- I am currently running Metric theme and on the blog homepage I want to hide the 'categories' and 'tags' on the post excerpts as it just looks too busy on the page- any ideas?
    Thanks!

    http://www.suerte-communications.com
    June 8, 2014 at 9:50 am #108526
    Brad Dalton
    Participant

    I couldn't find any links for entry meta in your entry footer on your home page.

    StudioPress have already provided the code to do this: http://my.studiopress.com/snippets/entry-footer/#customize

    You can control this further by adding the is_home() conditional tag after the function so the code now becomes this:

    Note: Only works on HTML 5 themes. Please convert your XHTML markup to HTML 5 or use CSS instead.

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if ( is_home() ) {
    	$post_meta = '';
    	return $post_meta;
    }}
    

    Tutorials for StudioPress Themes.

    June 10, 2014 at 8:00 am #108759
    L_555
    Member

    Thanks very much Brad- the page I want to hide the categories and tags on is http://www.suerte-communications.com/marketing-advice/ would this still apply? (Sorry I am a dunce when it comes to this- I am now going to research what the heck xhtml is compared to html5...)

    June 10, 2014 at 8:22 am #108763
    Brad Dalton
    Participant

    Its just different markup so the CSS is different and renders better as it validates better with less errors.

    Change this line in the code:

    if ( is_home() ) {
    

    To this:

    if ( is_page('marketing-advice') ) {
    

    Or you could use:

    if ( is_page_template('page_blog.php') ) {
    

    Or you could simply hide it using CSS in your style sheet which works on your existing XHTML markup:

    .page-template-page_blog-php .post-meta {
    display: none;
    }
    

    Tutorials for StudioPress Themes.

  • 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

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