| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Removing SimpleCMS primary_menu.css from CSS list | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Removing SimpleCMS primary_menu.css from CSS list
I've got my own menu that works entirely using the SimpleCMS top menu system but with all changes made using CSS.
I've put this CSS file in a module so it can be switched on and off easily. What I now want to do is prevent the original CSS file being added to the list. I've tried everything I've seen in tutorials and documentation but can't seem to stop it being added to the list. What will work?
__________________
Core version: 5.5.xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Removing SimpleCMS primary_menu.css from CSS list
You need to loop through the CSS files in your module, and remove the one you want. Your module will probably need to be dependent on the Simple CMS module.
PHP Code:
__________________
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. |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Removing SimpleCMS primary_menu.css from CSS list
I got it working with this:
Code:
You can see it working before and after in the debug Code:
It's always a problem for me working what and how to override methods but at least it's working now.
__________________
Core version: 5.5.xx |
|||||||
|
|||
X-Cart forums © 2001-2020
|