• Resolved baykanun

    (@baykanun)


    My color variations appear on the product and store page, but not on my home page. I am using elementor & hello theme. How can I show it on the home page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aamir

    (@aamiribsf)

    Hello @baykanun,

    Greetings for the day,

    By default, the Variation Swatches plugin is designed to work on the shop page, product page, and product attribute page. However, if you would like to enable it on any other page, you can do so by using a filter.

    You can add the following custom PHP code to enable Variation Swatches on any page:

    add_filter( 'cfvsw_requires_shop_settings', function( $status ){
    			if( is_page() ) {
    				return true;
    			}
    			return $status;
    		});

    If you’re not sure how to use this custom PHP code, please refer to the following article on our knowledge base:

    How and Where to Add the Custom JS, CSS & PHP Codes?

    Hope this helps.

    Let me know how it goes.

    Plugin Support Sravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @baykanun ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘color variation not show homepage’ is closed to new replies.