Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

removing css?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-04-2015, 01:20 PM
 
mmcclellan mmcclellan is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 9
 

Default 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.
__________________
X-Cart Version: 5.2.17
Modules: Varies by site
Reply With Quote
  #2  
Old 02-05-2015, 04:58 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
mmcclellan (02-06-2015)
  #3  
Old 02-06-2015, 05:22 AM
 
mmcclellan mmcclellan is offline
 

Newbie
  
Join Date: Mar 2014
Posts: 9
 

Default 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.
__________________
X-Cart Version: 5.2.17
Modules: Varies by site
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:21 AM.

   

 
X-Cart forums © 2001-2020