Forum Replies Created
-
AuthorPosts
-
patpetroMember
Brad, you are the best!
I used this:
.category-poems .post-info .date,
.category-recipes .post-info .date {
display: none;
}
Worked like a charm. I will install Firebug. Thanks for the suggestion . . . and thanks again for all of your help.
Patricia
patpetroMemberI removed the post info from the two categories using the CSS you provided, and I'm satisfied. I don't understand fully why it worked, but I like that it did and that it was such an easy fix.
I am curious though . . . is there something I can add to the CSS that would target just the date on the post info?
Thanks for all your help.
patpetroMemberSorry for my lack of knowledge. This is my first Genesis site, and I'm trying to wrap my head around customizing it using functions. If it was HTML, I would know exactly what to do.
My website is at http://www.patpourri.com.
Originally, I was trying to remove the post info from posts in the "recipes" category. However, after thinking about it, I would prefer to leave the post info in, but eliminate just the date in post info on posts in both the "recipes" and "poems" categories.
Is this possible? The code I have in the child theme is:
/** Customize the post info function */
add_filter( 'genesis_post_info', 'innov8tive_post_info_filter' );
function innov8tive_post_info_filter( $post_info ) {
return 'By [post_author_posts_link] [post_date before=" on "] | [post_tags before="Filed under "] | [post_comments]';
}patpetroMemberI already have the conditional tag in my child theme; and if I use the CSS "display: none," the post info disappears on all posts in all categories. I was hoping there was a way to add an "if in_category ()" to the conditional tag that would affect just the one category. I tried to do it on my own, but not knowing much about PHP, it didn't work.
-
AuthorPosts