• Resolved xhatox

    (@xhatox)


    Hey everyone,

    I’ve been trying to solve this for the last 3 days, but am lost!

    Would like to add a new class to the Related Products imgs.
    a. Current classes are: .attachment-shop_catalog and .wp-post-image.

    b. I would like to change the classes to: attachment-shop_catalog .wp-post-image and .MyCustomClass <– the new class.

    I was able to create a wrapper div AROUND the images editing the related.php file, but cannot figure out how to add a class TO the images themselves.

    Any help would be GREATLY appreciated! Thank you.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter xhatox

    (@xhatox)

    Hello Royho,

    Thank you so so much. The code you created works perfectly. I’ve been trying to solve this for over 3 days!

    How can I thank you?

    Plugin Contributor royho

    (@royho)

    You’re welcome! Just spread the love and help others when you can. ??

    Thread Starter xhatox

    (@xhatox)

    Thank you so much Royho! You are an incredible person. ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Adding NEW Class to Related Products Images’ is closed to new replies.