Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1088443

    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 !

    • This topic was modified 6 years, 9 months ago by fromeopro.
    #1088636

    bump

    #1090113

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.