• Resolved xxaimsxx

    (@xxaimsxx)


    I’m trying to dequeue custom.css but I can’t figure out. This non existent file adds 6s extra to load the page.

    Testing done via pingdom,

    Thanks,
    Amy

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor averta support

    (@averta_support)

    Hi Amy,

    Thank you for choosing Master Slider.

    Because the file does not exist, it takes 6s to load the page.
    Please add a new style to a slider, then save it. Now the file is created.
    Test it again and let us know if the problem persists.

    Best,
    Averta

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Right, but why would I want to add styles in there if I don’t need to? I’m trying to have less file calls, that’s why I want to remove it. How can I do that?

    Plugin Contributor averta support

    (@averta_support)

    Hi Amy,

    By adding the below code to functions.php file on your theme, you can dequeue style:

    add_action( 'wp_enqueue_scripts', 'dequeue_masterslider_custom_css', 99 );
    
    function dequeue_masterslider_custom_css() {
     wp_dequeue_style( 'ms-custom' );
    }

    Please let me know if you have any further questions.

    Best,
    Averta

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Awesome! Thank you! I will try that out today.

    Much appreciated.
    Amy

    Plugin Contributor averta support

    (@averta_support)

    Hi Amy,

    You are very welcome 🙂

    Please let me know the result.

    Best,
    Averta

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Hello-

    Sorry, some reason I thought I had tested this already and it worked but it’s not. The file is still loading.

    Amy

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Okies, I was able to find it now:

    add_action( 'wp_enqueue_scripts', 'dequeue_masterslider_custom_css', 99 );
    function dequeue_masterslider_custom_css() {
    	wp_dequeue_style( 'msl-custom' );
    }
    Plugin Contributor averta support

    (@averta_support)

    Hi Amy,

    So has it been resolved?

    Best,

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

The topic ‘Dequeue custom.css’ is closed to new replies.