- This topic has 1 reply, 2 voices, and was last updated 11 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › WP eStore – How to prevent custom CSS file from loading
Tagged: custom css, remove css
Hi.
I like to limit the amount of CSS requests on my sites so I need to remove the Custom CSS file (wp_eStore_custom_style.css). I do not want it to load on the page and I have other ways of editing the CSS. My assumption is that can add a small script to the functions.php file or somewhere so that this is not deleted with future backups.
I greatly your reply in advance!
Thank you,
Brent
Hi, Are you by any chance using the W3 Total Cache plugin? or another plugin that can combine CSS files and serve one CSS file for your site? That option can really help with this without you having to do any customization at all. For example on our site we use the W3 Total cache plugin to combine most of the small CSS files and serve one big CSS file.
To manually turn off the loading of the custom CSS file, please open the wp_eStore1.php
file and search for this line:
echo '<link type="text/css" rel="stylesheet" href="'.WP_ESTORE_URL.'/wp_eStore_custom_style.css" />'."n";
Once you find it replace with the following:
//echo '<link type="text/css" rel="stylesheet" href="'.WP_ESTORE_URL.'/wp_eStore_custom_style.css" />'."n";
If you want to use the css file in future you can just uncomment the line (by removing //
at the beginning).