• 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

Hide Date On Sticky Post – Decor 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 › Hide Date On Sticky Post – Decor Theme

This topic is: not resolved

Tagged: Decor theme, sticky post

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 4 months ago by vandalais.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 15, 2015 at 10:05 pm #144571
    vandalais
    Member

    Hi Folks,

    I'm trying to hide the date on the sticky post using the Decor theme. I used the following code in the functions.php of the Decor child theme.

    //* Customize entry meta in the entry header to remove Post Date from Sticky posts
    add_filter( 'genesis_post_info', 'myg_post_info_filter' );
    function myg_post_info_filter($post_info) {
    if ( is_sticky( ) ) {
    $post_info = 'by [post_author_posts_link] [post_comments] [post_edit]';
    }
    else {
    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    }
    return $post_info;
    }

    For some reason it did not work. An even more elegant solution would be to substitute the date with "Featured Post". Any help is appreciated.

    Thanks,

    Keith


    Follow me on Twitter

    http://chelettesdecorandmore.com/
    March 16, 2015 at 1:28 am #144584
    Brad Dalton
    Participant

    You can create your own short code which links to a sticky post or hide the date using CSS. Check the source code for the right class to use.


    Tutorials for StudioPress Themes.

    March 16, 2015 at 8:19 am #144617
    vandalais
    Member

    Hi Brad,

    Thanks for getting back with me so quickly. I found the class to hide the sticky post date.

    .sticky .post-date {
    display: none;
    }

    So I could go that route.

    What I would really like to do is substitute the date with "Featured Post". I can insert the content using

    .sticky .post-date em:before {
    content: "Featured";
    font-size: 24px;
    }
    
    .sticky .post-date em:after {
    content: "Post";
    font-size: 24px;
    }

    The class for the date is class="date published time" and this is what I would like to hide. No matter what I try, I can't figure out how to style (hide) this one class. I think the spaces in the class is what is throwing me off.

    Any additional help is appreciated.


    Follow me on Twitter

    March 16, 2015 at 8:46 am #144619
    vandalais
    Member

    I got it. I had a syntax error.

     .sticky .post-date em:before {
    content: "Featured";
    font-size: 28px;
    }
    
    .sticky .post-date em:after {
    content: "Post";
    font-size: 28px;
    }
    
    .sticky .date.published.time {
    display: none;
    }
    

    Follow me on Twitter

  • 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