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? |
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:
|
Re: Removing SimpleCMS primary_menu.css from CSS list
I got it working with this:
Code:
namespace XLite\Module\ZZZTEST\ZtestRemoveCss; You can see it working before and after in the debug Code:
[15:32:28.000000] array ( It's always a problem for me working what and how to override methods but at least it's working now. |
All times are GMT -8. The time now is 05:45 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.