• Resolved mastercavid

    (@mastercavid)


    Hi,

    1) I want to fully disable your plugin css file with function.php. I mean public.min.css

    2) How can I disable tinvwl webfont with function.php?

    3) I want to add simple notification with ajax when user add product to wishlist. How can I make it with jquery? I dont want to use popup, I mean notification which website show it during 2-3 seconds and it dissappear automatically. I dont know how can I get added wishlist function

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

    (@templateinvaders)

    Hi @mastercavid

    1) You can use the next snippet to disable public stylesheet:
    https://gist.github.com/doozy/ead6304ea7b4e14a7ea90f31e11314d0

    2) The plugin fonts loading from public stylesheet so with the snippet above it will automatically be disabled.

    3) You can disable popup in the general section of plugin settings. On the button click fired event ‘tinvwl_wishlist_button_clicked’ that attached to the body so you can use something like:
    `
    jQuery(‘body’).on(‘tinvwl_wishlist_button_clicked’, function(e, data){
    // run your notification code
    });

    Kind regards.

    Thread Starter mastercavid

    (@mastercavid)

    Thank you very much, I solved 1 and 2 and my theme css is cleaner than previous now. Excellent! But I dont mean “button clicked” function, I mean “product are added” moment (in your code Jquery begin when clicked, not after adding wishlist process)

    Plugin Author templateinvaders

    (@templateinvaders)

    Hi @mastercavid

    I hope we understand what you need exactly and added the event’tinvwl_wishlist_added_status’ that attached to the body and fired on AJAX reply when product added to wishlist. It has two parameters – clicked element and status (boolean) of product addition results.

    Check this commit:
    https://github.com/TemplateInvaders/ti-woocommerce-wishlist/commit/5805df3d9ae86629a3b9a97140bd75d4e5bd08f1

    This code will be released in the next update that scheduled on next Tuesday.

    Kind regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable theme css’ is closed to new replies.