• 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

Help with How to Remove a Date Block

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 › Help with How to Remove a Date Block

This topic is: not resolved

Tagged: Date Block, genesis

  • This topic has 5 replies, 4 voices, and was last updated 9 years, 11 months ago by StacyN.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 8, 2012 at 12:34 pm #3864
    winemagazine6180
    Member

    We have the Genesis Platform and have the Decor theme. There is a date block embedded in the image at the top of the page. We would like to remove the date block entirely as we are using this theme for a quarterly online magazine and not a daily post. How can this be removed?  Website is: http://www.wine-country-magazine.com.

    Thanks!

    Paul

    December 9, 2012 at 8:40 am #3998
    AnitaC
    Keymaster

    Install the Genesis Simple Edits and then remove the date - http://www.studiopress.com/plugins/simple-edits.


    Need help with customization or troubleshooting? Reach out to me.

    December 9, 2012 at 8:50 am #4000
    winemagazine6180
    Member

    Thank you for your response.  However, we have already tried the Simple Edits and that doesn't resolve the issue. The date we want to remove is in the header portion of the design.

     

    December 9, 2012 at 8:56 am #4004
    AnitaC
    Keymaster

    Using Firebug - I was able to delete the .post-date and it disappeared. Try the same thing in your style.css file.


    Need help with customization or troubleshooting? Reach out to me.

    January 18, 2013 at 6:02 pm #12999
    sahdow
    Participant

    Find the following in post functions:

    /** Add post image above post title */
    add_action( 'genesis_before_post_title', 'decor_post_image' );
    function decor_post_image() {

    if ( is_page() ) return;

    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '<a href="%s" rel="bookmark" class="post-photo"><span class="post-date">%s</span><img src="%s" alt="%s" /></a>', get_permalink(), do_shortcode( '<em>[post_date format="j"]</em>[post_date format="F Y"]' ), $image, the_title_attribute( 'echo=0' ) );
    }

    }

     

    Change to:

    /** Add post image above post title */
    add_action( 'genesis_before_post_title', 'decor_post_image' );
    function decor_post_image() {

    if ( is_page() ) return;

    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '<a href="%s" rel="bookmark" class="post-photo"><img src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }

    }

    August 3, 2015 at 6:29 pm #161337
    StacyN
    Participant

    This was making me crazy - and I just went into the style sheet and set the DISPLAY to "none". It worked just fine for me without changing any alignment of the borders or other issues.

    .post-photo .post-date {
    -moz-box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.20);
    -webkit-box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.20);
    background-color: #fff;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.20);
    color: #7d7d7d;
    display: block; - CHANGE THIS LINE TO display: none;
    font-size: 14px;
    padding: 20px 10px;
    position: absolute;
    right: 20px;
    text-align: center;
    top: -2px;
    width: 100px;
    z-index: 999;
    }

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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