The Genesis Framework is so customisable it is untrue!
That said sometimes you come across a client request that means you have to do a little research before you find the answer. I recently had cause to show the post info on all categories except one whilst using the Enterprise childframe based on the Genesis framework..
After hours of research I eventually figured it out and thought I ought to post the answer here.
Here is the custom code which is placed in the child themes functions.php;
/** Customize the post info function */ add_filter( 'genesis_post_info', 'post_info_filter' ); function post_info_filter($post_info) { if (!is_category('Testimonials')) { $post_info = '[ post_date] by [ post_author_posts_link] at [ post_time] [ post_comments] [ post_edit]'; //remove spaces after initial [ return $post_info; }}
NOTE – Remove the space character in the short code [ post_date] etc!!
The above code snippet will remove the post info from any post associated with the category “Testimonials”.
The following resources were referred to;
NB – DISCLAIMER! – Please ensure you read this before applying any code to your site
Speak Your Mind
You must be logged in to post a comment.