Help with How to Remove a Date Block

Community Forums Forums Design Tips and Tricks Help with How to Remove a Date Block

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  sahdow 1 year, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3864

    winemagazine6180
    Participant

    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

    #3998

    AC
    Blocked
    Post count: 7712

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

    #4000

    winemagazine6180
    Participant

    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.

     

    #4004

    AC
    Blocked
    Post count: 7712

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

    #12999

    sahdow
    Participant
    Post count: 4

    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′ ) );
    }

    }

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.