Tagged: x
-
AuthorPosts
-
April 9, 2016 at 10:16 am #874217
seanmanionParticipantHi There,
For css, I use Jetpack. I do realize that it is 3rd party, but really enjoy the ability to have a backup of my css immediately available. With that said, I do not use “custom.css”. The issue is that http://prntscr.com/aq44pn
My Request/Question:
Is there any way that I can force that file to Not load?Much Appreciated,
SeanApril 9, 2016 at 11:41 pm #874784
Rue NelModeratorHello Sean,
Thanks for writing in! Would you mind providing us the url of your site with login credentials so we can take a closer look at your site? Do you have a child theme and custom functions? We would like to check something in your site that may have caused the issue in your site.
To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
April 10, 2016 at 9:00 am #875203
seanmanionParticipantHello,
I do not think this requires you to access the website. You can see that the same thing happens on many websites using X-Theme. On any of the links below, sort by load time (http://prntscr.com/aqhjn8), then you will see that “/?custom-css=1&csblog=1&cscache=______” is always in the top longest load times:
1- http://tools.pingdom.com/fpt/#!/b6hiFK/http://gondwanaecotours.com/
2- http://tools.pingdom.com/fpt/#!/bJ7m16/http://www.skiarpa.com/
3- http://tools.pingdom.com/fpt/#!/br0lm5/https://literative.com/Again, I am requesting to know how to not load that file because it is not used in any way (I use jetPack css).
Thank you.
April 10, 2016 at 8:42 pm #875761
Rue NelModeratorHi Sean,
We need to check the site to identify the filename and its css style handle to be able to dequeue the file in your site.

For the meantime, to properly unload or dequeue a css style, please do check out the codex;
https://codex.wordpress.org/Function_Reference/wp_dequeue_styleadd_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); function remove_default_stylesheet() { wp_dequeue_style( 'original-enqueue-stylesheet-handle' ); wp_deregister_style( 'original-register-stylesheet-handle' ); wp_register_style( 'new-style', get_stylesheet_directory_uri() . '/new.css', false, '1.0.0' ); wp_enqueue_style( 'new-style' ); }Hope this helps.
April 11, 2016 at 12:33 pm #876861
seanmanionParticipantThis reply has been marked as private.April 12, 2016 at 12:47 am #877692
Paul RModeratorHi,
To remove the stylesheet, you can add this in your child theme’s functions.php file.
add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); function remove_default_stylesheet() { wp_dequeue_style( 'custom-css-css' ); wp_deregister_style( 'custom-css-css' ); }Hope that helps
April 12, 2016 at 8:56 am #878320
seanmanionParticipantThank you. Though I was not able to see the desired effected based on the suggestion given, I realized that my issue was that JetPack CSS was the thing making the long load time. Using the child theme’s style.css instead of jetpack was a benefit. (..But I’m sad to not have the “restore previous version” ability..)
April 12, 2016 at 5:36 pm #879047
DarshanaModeratorGlad you were able to figure it out 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-874217 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
