• Resolved newshop

    (@newshop)


    Hello, I would like to remove all stylesheets added via Bitform. I found the “No css style” option, but the bitform-*formid*.css is loaded anyway. I would like to prevent the loading completely.

    I tried the following without any success:

    add_action('wp_enqueue_scripts','custom_remove_styles',1000);
    function custom_remove_styles() {
    wp_dequeue_style('bitform-style');
    wp_deregister_style('bitform-style');
    }

    Could you please help?

    Thank you in advance.

    • This topic was modified 11 months ago by newshop.
Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Support bitpresssupport

    (@bitpresssupport)

    Hello Newshop! To remove the Bitform stylesheet for a specific form, you’ll need to concatenate the form ID to the style handle when using the wp_dequeue_style and wp_deregister_style functions. For example, if your form ID is 24, you would use the following code instead:

    add_action(‘wp_enqueue_scripts’,’custom_remove_styles’,1000);
    function custom_remove_styles() {
    wp_dequeue_style(‘bitform-style24’);
    wp_deregister_style(‘bitform-style24’);
    }

    This should prevent the stylesheet from being loaded for the specified form. Let me know if you have any other questions or if this solution doesn’t work for you. Thanks!

    Thread Starter newshop

    (@newshop)

    Ok thank you, I was hoping that there was a solution to apply for ALL forms, but your solution is ok too.

    Thread Starter newshop

    (@newshop)

    I just tried you solution for my form with ID 1, but it doesnt work:

    add_action('wp_enqueue_scripts','custom_remove_styles',1000);
    function custom_remove_styles() {
    wp_dequeue_style('bitform-style1');
    wp_deregister_style('bitform-style1');
    }

    What am I doing wrong?

    Plugin Support bitpresssupport

    (@bitpresssupport)

    Please try it

    add_action( ‘wp_enqueue_scripts’ , function () {
    wp_dequeue_style(‘bitform-style1’);
    wp_deregister_style(‘bitform-style1’);
    } , 1000);



    Thread Starter newshop

    (@newshop)

    Thank you, but that doesn’t work either 🙁

    Plugin Support bitpresssupport

    (@bitpresssupport)

    Hi There

    Could you please let us know where you add this code?

    Thread Starter newshop

    (@newshop)

    I tried it with Code Snippets first (since this is where I add most of my custom code) and then added directly to my childtheme’s functions.php. Also replaced the 1000 with 1 and then completely removed it. All without any success.

    • This reply was modified 10 months, 2 weeks ago by newshop.
    Plugin Support bitpresssupport

    (@bitpresssupport)

    We apologize for the inconvenience you are experiencing. Despite our efforts to resolve the issue, it seems like we need further access to your WordPress site in order to troubleshoot it. Would you be able to create a test user account with admin privileges and send us the login credentials to support@bitapps.pro? This will allow us to investigate the issue more deeply and provide a solution as soon as possible. Thank you for your cooperation.

    Thread Starter newshop

    (@newshop)

    Does the code snippet you provided work on your test environment? I am using this kind of code for many other plugins and it always works like a charm, except with Bitform.

    Creating a test environment is possible but really time consuming (I can not give you admin credentials as this is an onlineshop with lots of personal customer data), thats why I would like to clarify if you have tested it with your own environment and if your were really not able to reproduce the issue?

    • This reply was modified 10 months, 2 weeks ago by newshop.
    Plugin Support bitpresssupport

    (@bitpresssupport)

    We have tested the code snippet provided in our own test environment and it is working as expected. In order to investigate the issue further, we requested you share your access to your site.

    Thread Starter newshop

    (@newshop)

    Ok I’ve created a temporarily test environment and have just sent you all information via email.

    Thanks and kind regards

    • This reply was modified 10 months, 2 weeks ago by newshop.
    Thread Starter newshop

    (@newshop)

    Hi, I’ve updated to version 2.1.0 but still I am not able to remove styles. What code should I use to remove styles completely?

    Thread Starter newshop

    (@newshop)

    Hello? I still need help with this since the provided code snippet does not work.

    Plugin Support bitpresssupport

    (@bitpresssupport)

    We are sorry for the delayed response. We want to assure you that we have acknowledged the issue and are actively working to resolve it as soon as possible. Please note that we are currently observing EID holidays, which is the biggest religious festival for Muslims. During this time, our development team is unable to address the issue immediately. However, once the holidays conclude, our team will investigate the matter further and work towards a prompt resolution.

    We sincerely apologize for any inconvenience this may have caused you during this time. Thank you for your understanding, and we appreciate your patience as we work towards resolving the issue. If you have any further questions or concerns, please don’t hesitate to reach out to us.

    Thread Starter newshop

    (@newshop)

    How long are your holidays?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Remove all stylesheets completely’ is closed to new replies.