X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   removing css? (https://forum.x-cart.com/showthread.php?t=71122)

mmcclellan 02-04-2015 01:20 PM

removing css?
 
Hello again, forum.

So, how about removing/detaching default CSS?

Specifically, I'd like to drop Bootstrap in its entirety. My agency uses Foundation for default styles and there are some conflicts between the two.

totaltec 02-05-2015 04:58 PM

Re: removing css?
 
Wow, dropping BootStrap would be like starting over. But I applaud your efforts to make XC your own. You can unlink style sheets pretty easy, thanks to XC5's architecture.
Just look into:
Code:

public function getCSSFiles()
    {
        $list = parent::getCSSFiles();
        $list[] = 'button/css/popup.css';

        return $list;
    }

I'd loop through the $list, and see what I could remove. I do want to warn you though, Bootstrap is pretty foundational, removing it is going to mean a lot of work.

mmcclellan 02-06-2015 05:22 AM

Re: removing css?
 
Ha! Thanks. I did suspect it'd be a pretty big deal, and I may not drop all of it. There are a couple of classes that both Bootstrap and Foundation use for very different purposes that are a little tricky to override (display:inherit!important; can only get you so far).

I've just been trying to set up an X-Cart skin that we can easily integrate with our in-house style system so we aren't starting from scratch every time we set up a store.

I'll comment here to report what happens for posterity.


All times are GMT -8. The time now is 02:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.