• Resolved Garry

    (@mrgarry05)


    Hi there, I use the custom product & category page layout and been using the shortcode for a long time, New integration with the Flatsome theme messed up my design. How can I remove it easily?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author templateinvaders

    (@templateinvaders)

    Hi @mrgarry05

    You need to use the next PHP snippet:

    	remove_action( 'flatsome_product_image_tools_top', 'tinvwl_flatsome_product_wishlist_button', 2 );
    	remove_action( 'flatsome_product_box_tools_top', 'tinvwl_flatsome_product_wishlist_button', 2 );
    Thread Starter Garry

    (@mrgarry05)

    I used this PHP snippet, but it doesn’t remove the wishlist buttons from photos

    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @mrgarry05

    It’s possible that mentioned snippets fired before our plugin hooks. To make it bulletproof you can use the next snippet:

    add_action( 'init', 'tinvwl_flastome_integration' );
    
    function tinvwl_flastome_integration() {
    	remove_action( 'flatsome_product_image_tools_top', 'tinvwl_flatsome_product_wishlist_button', 2 );
    	remove_action( 'flatsome_product_box_tools_top', 'tinvwl_flatsome_product_wishlist_button', 2 );
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Flatsome Theme compatibility’ is closed to new replies.