View Single Post
  #2  
Old 02-09-2017, 05:43 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default 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:
/**
     * Get a list of CSS files required to display the widget properly
     *
     * @return array
     */
    
public function getCSSFiles()
    {
        
$list parent::getCSSFiles();

        foreach (
$list as $key => $css_file) {
            if (
$css_file == 'this-one-css-file.css') {
               unset(
$list[$key]);
            }
        }

        return 
$list;
    } 
This code above is untested, just an example.
__________________
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