• Resolved wpuman

    (@wpuman)


    Hello,

    Is there a way to add via PHP (or a filter), CSS classes (MyClassX) to upsells products?

    <section class="up-sells upsells products">
    	<h2>You might also like…</h2>
    	<ul class="products columns-4">
    		<li class="product type-product MyClass1">...</li>
    		<li class="product type-product MyClass2">...</li>
    		<li class="product type-product MyClass3">...</li>
    		<li class="product type-product MyClass4">...</li>
    	</ul>
    </section>

    Many Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wpuman

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    If you’re not receiving input on this thread, I can recommend reaching out to one of the customization experts listed here: https://woocommerce.com/customizations/.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    This specific forum is more focused on the default WooCommerce core features.

    Seems we’ve not had additional inputs on this thread. Thus, we encourage you to make use of the above resources.

    I’ll go ahead and mark the thread as resolved but please feel free to create a new thread if you have further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add CSS Class to Upsells product via PHP’ is closed to new replies.