nitish062 Posted July 23, 2013 Share Posted July 23, 2013 I am new to prestahsop and currently modifying the css. To edit the top menu css, I have created a directory called "blocktopmenu" in my theme called "newtheme" 's module directory. To override the default cs, I created a css called "blocktopmenu.css" within the css directory. So the path of the blocktopmenu.css is "/myytheme/modules/blocktopmenu/css/blocktopmenu.css". But the CSS is not working. I want to kinow how I can over ride the default css behaviour of the module? Thanks 1 Link to comment Share on other sites More sharing options...
RaPhiuS Posted July 23, 2013 Share Posted July 23, 2013 Hello, You should specify that you want to use that CSS. To do this you need to add the following call into the setMedia() method of your controller inheriting from a ModuleFrontController: // Add our specific Cascading Style Sheet needs for this controller $this->context->controller->addCSS(_MODULE_DIR_.$this->module->name.'/views/css/yourCSS.css'); hope this helps! If you need anything additional , please refer to the development documentation which is quite nice. BR, RaPhiuS 1 Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2013 Share Posted July 23, 2013 block top menu uses superfish-modified.css file not blocktopmenu.css Link to comment Share on other sites More sharing options...
nitish062 Posted July 23, 2013 Author Share Posted July 23, 2013 Hello, You should specify that you want to use that CSS. To do this you need to add the following call into the setMedia() method of your controller inheriting from a ModuleFrontController: // Add our specific Cascading Style Sheet needs for this controller $this->context->controller->addCSS(_MODULE_DIR_.$this->module->name.'/views/css/yourCSS.css'); hope this helps! If you need anything additional , please refer to the development documentation which is quite nice. BR, RaPhiuS Thanks for your reply. But what if I want to build the menu as independed one ? Link to comment Share on other sites More sharing options...
vekia Posted July 27, 2013 Share Posted July 27, 2013 Thanks for your reply. But what if I want to build the menu as independed one ? read my post above, and override superfish modified file Link to comment Share on other sites More sharing options...
Recommended Posts