Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

WP eStore – How to prevent custom CSS file from loading

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

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 10 months ago by wpCommerce.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 14, 2013 at 7:57 pm #9336
    Brent
    Member

    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

    July 15, 2013 at 1:26 am #56616
    wpCommerce
    Moderator

    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).

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ