Hi guys ! i’m trying to achieve a custom post-grid, i want a background color for each category div.
here is my css
.blog-categories.minor-meta <em>(i want to put my cat name here)</em> {
margin-top: -40px !important;
margin-bottom: 10px !important;
background-color:#e2092d !important;
border-radius: 0 0 3px 3px;}
and here is my postslider.php line 610:
if(!empty($cats))
$meta_out .= '<span class="blog-categories minor-meta';
$meta_out .= $cats;
$meta_out .= '">';
$meta_out .= $cats;
$meta_out .= '</span>';
Apparently, $cats return the link info, the category name etc…,
here is the inspector :
blog-categories minor-meta<a href= etc...
how can i get only the category name ?
Thx !
bump
Hi fromeopro,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
