• Hello, since upgrading to version 4 there are some styles added to the input elements that I can’t override in CSS but I cant find where they’re coming from. Its on a select element with the class of yith-wapo-option-value: style=”width: 75% !important;”

    Could you advise where this is being added and how I can override this to 100%? not matter how specific I am with my css this style wins

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    Try to add this CSS rule in Appearance > Customize > Additional CSS:

    .yith-wapo-addon span.select2 {
    width: 100% !important;
    }

    Let us know if that did the trick.

    Thread Starter user9876789

    (@user9876789)

    Thanks for the reply, this didn’t work. The element that has the width: 75% on is a select element with class yith-wapo-option-value the full element atts are:

    <select id="yith-wapo-1" name="yith_wapo[][1]" class="yith-wapo-option-value" data-addon-id="1" style="width: 75% !important;">

    I have no idea where that width: 75% !important is coming from – it’s not there on version 2. Any style I try to add, no matter how specific, wont override this

    Thread Starter user9876789

    (@user9876789)

    Any ideas on this? The width 75% !important is being generated by the plugin and I can’t remove or override it.

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    Please, try to add the following code in the functions.php of your active theme

    if( !function_exists('yith_wapo_change_default_width_settings') ) {
        function yith_wapo_change_default_width_settings($val)
        {
            $val = 100;
            return $val;
        }
    
        add_filter('yith_wapo_get_addon_select_width_settings', 'yith_wapo_change_default_width_settings');
    }
    
    

    It should override the default settings for the width

    Please, try it and let me know.

    Have a good day.

    Thread Starter user9876789

    (@user9876789)

    Thank you that worked!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t override styles on certain elements’ is closed to new replies.