• Resolved StudioinBlue

    (@studioinblue)


    This might be outside the purview of support, but I’d really like to bracket sponsor images with ‘span’ tags so I have an extra control in css styling. If you can’t advise me, would it be on the list for future updates? Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hey @studioinblue
    Since the last update there actually is a filter to add CSS classes to the each sponsor’s <li>, maybe that could work for you?

    Here’s an example of what you have to add for that (this goes in the functions.php of your theme):

    
    function sponsors_styling_callback($value) {
        $value .= ' text__medium';
        return $value;
    }
    add_filter('sponsors_widget_styling', 'sponsors_styling_callback');
    
    

    The above will make the class for each sponsor “sponsor-item text__medium”.

    Can you give this a try?
    Cheers
    Jan

    • This reply was modified 8 years, 4 months ago by janhenckens.
Viewing 1 replies (of 1 total)
  • The topic ‘any way of adding a ‘span’ tag around images?’ is closed to new replies.