• Resolved Richard

    (@richardelovia)


    Hi, is was trying to remove jQuery UI css that gets loaded in all pages that include Formintaor’s forms (this is the loaded resource: https://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.min.css?ver=1).

    I tried adding this snippet but with no success:

    add_action('wp_enqueue_scripts', function () {
    if (!is_admin()) {
    wp_dequeue_style('forminator-jquery-ui-styles-css');
    wp_deregister_style('forminator-jquery-ui-styles-css');
    }
    }, 9999);

    P.S.
    It would be great that if we check “no styles” in the plugin’s settings, there is no styles at all, not even form libraries. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @richardelovia

    I hope you are doing well today.

    We already have an improvement task in that matter, and future updates will fix that. You can try this snippet:

    add_filter('forminator_jquery_ui_css', '__return_false');

    Note that this will stop loading the CSS file, but will cause issues with the calendar on the field.

    You will need to add custom CSS to resolve the issue, for example, the background color:

    #ui-datepicker-div {
    background-color: #ffffff !important;
    }

    Kind Regards,
    Kris

    Thread Starter Richard

    (@richardelovia)

    Hi Kris and thank you very much for your support. The snippet you provided worked nicely.
    I appreciate this is something on the roadmap of Forminator.

    I just wanted to let you guys know that when on a 13 inch laptop, che calendar dropdown position gets calculated incorrectly. This does not happen on bigger screens nor on mobile.

    Below is an image of the calendar on a small desktop:

    While this is on a bigger 15 inches one:

    If I inspect the element on the 15 inch display and go into responsive mode to match the 13 inch one, I cannot replicate the issue. Seems like it is strictly related to the calculation phase of the dropdown position on smaller screens.

    I’d be happy to help so please feel free to contact me via e-mail should you guys need any further details.

    • This reply was modified 2 months, 3 weeks ago by Richard. Reason: Re-inserted images

    Hi @richardelovia

    Can you give us more details about this issue:

    1. Which Forminator style is enabled there or you use none with above snippet enabled?
    2. Are you able to share with us page URL where form is located so that we can take a closer look?

    Kind Regards,
    Kris

    Thread Starter Richard

    (@richardelovia)

    Hey Kris, sorry it took me long to get back.

    Would you mind if I send details via email? This is just because in the past I opened some other topics here in the forum and the pages I linked got indexed as relevant for the posted website which I’d prefer not to.

    I wonder if you guys have a dedicated email address for this. Mine is the same one associated to my profile.

    Thanks!

    • This reply was modified 2 months, 2 weeks ago by Richard. Reason: Added email question
    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @richardelovia,

    Yes, sure. Please email us at wpsupport@incsub.com with the following subject: ATTN: WPMU DEV support - wp.org

    Please also include a link to this thread for reference: https://wordpress.org/support/topic/remove-jquery-ui-styles/
    and any other relevant info, URLs, etc.

    Looking forward to hearing back from you.

    Best Regards,
    Dmytro

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @richardelovia

    We haven’t heard from you in some time, so I will mark this thread as resolved. If you have any more questions or need further assistance, please let us know!

    Kind Regards,
    Amin

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

You must be logged in to reply to this topic.