Community Forums › Forums › Archived Forums › Design Tips and Tricks › Help with How to Remove a Date Block
Tagged: Date Block, genesis
- This topic has 5 replies, 4 voices, and was last updated 10 years, 11 months ago by
StacyN.
-
AuthorPosts
-
December 8, 2012 at 12:34 pm #3864
winemagazine6180
MemberWe 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 #3998AnitaC
KeymasterInstall 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 #4000winemagazine6180
MemberThank 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 #4004AnitaC
KeymasterUsing 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 #12999sahdow
ParticipantFind 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 #161337StacyN
ParticipantThis 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;
} -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.