Support » Plugin: TI WooCommerce Wishlist » Edit / Tweak templates & disable default css

  • Resolved SpabRice

    (@spabrice)


    Hello,

    1. I’m looking for a possibility to edit (or overwrite) the default plugin templates to change the wishlist table appearance for example? Is there any possibility to do this via the themefiles without touching the plugin?

    2. How can I disable the css (public.min.css) file via the theme functions php? I think it’s not the best way to use this file when using the theme css, because I always need to use “!important” in order to apply these css rules.

Viewing 1 replies (of 1 total)
  • Plugin Support Stan

    (@stantinv)

    Hi @spabrice,

    1. Yes, our plugin supports template overrides similar to WooCommerce functionality. All you need is to copy the necessary template from the Wishlist plugin \templates directory into a \woocommerce folder of your theme/child-theme to reflect the changes.

    2. The function to disable the plugin styles should look something like this:

    function tinvwl_disable_plugin_styles() {
       wp_dequeue_style( 'tinvwl' );
    }
    add_action( 'wp_enqueue_scripts', 'tinvwl_disable_plugin_styles', 99 );

    But most styles can be overwritten without the !important attribute. You should simply try to find more specific rule to avoid using it.

    Regards,
    Stan

Viewing 1 replies (of 1 total)
  • The topic ‘Edit / Tweak templates & disable default css’ is closed to new replies.