Tagged: post dates
Hi,
I want to remove dates on the blog post element
And include the category in the masonry element
This is the only CSS mods I’ve tried..
.slide-content .slide-meta {
display: none;
}
span.av-masonry-date, li.news-content span.news-time {
display: none;
}
Hey shortcircuitmedia,
For removing dates on https://speakercommunity.org/aidan-crawford/ please add this CSS code in Enfold > General Styling > Quick CSS:
#top.single-post .avia-content-slider .slide-meta {
display: none;
}
As for adding a category in masonry element, please add this code in functions.php of your child theme:
add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 );
function avf_masonry_loop_prepare_mod_cat( $key, $entries )
{
$categories = get_the_category($key['ID']);
$separator = ' ';
$output = '
<div class="masonry-cat">';
if ( ! empty( $categories ) ) {
foreach( $categories as $category ) {
$output .= '<span alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $category->name ) ) . '">' . esc_html( $category->name ) . '</span>' . $separator;
}
}
$output .= '</div>
';
$key['text_after'] .= trim( $output, $separator );
return $key;
}
Hope it helps.
Best regards,
Nikko
Thanks very much!
Hi shortcircuitmedia,
We’re glad that we could help :)
Just let us know if you still need further assistance on this topic.
Best regards,
Nikko