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 5 replies, has 4 voices, and was last updated by  StacyN 3 weeks, 5 days ago.

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

    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

    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

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

    }

    #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;
    }

    • This reply was modified 3 weeks, 5 days ago by  StacyN.
    • This reply was modified 3 weeks, 5 days ago by  StacyN.
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.