Action/filter hook for images in Classic Feature List

Is there any action/filter hook to use to tweak the css on images in a Classic Feature List?

I’d like to add some CSS dynamically to images in a Classic Feature List using a filter in functions.php.

Hi there,

No unfortunately there is no such a thing. The Classic Feature List is rendered as a shortcode at the end. All the classic elements are like that, but the V2 elements are directly stored in the Meta Options table of the Database with a custom format and they do not have any shortcode representation.

Would you please elaborate more on the case and give us the exact customization that you want to perform so that we may be able to suggestion you an alternative way if there is any?

Thank you.

What I want to do, is to dim the image (it’s actually a badge, see http://gamipress.com/) if the person hasn’t completed that badge yet.

I LOVE the classic feature list look and feel, so I want to use it instead, but I thought if I could write some code that would “watch for” a badge image being displayed then I could check the database to see if the user has earned the badge or not and either use css to dim it, or simply swap it for a dimmer image.

Do you think that’s possible?

Hi again,

Thank you for the detailed write-up. I see what you’re trying to achieve but currently there is no option to do this. Your idea is right, you need to check the database if the user has earned the badge or not and then simply alter the image on the basis of database value. This might be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

Thanks for understanding. Take care!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.