Search the Community
Showing results for tags 'add css'.
-
Hi! Currently I'm using the following to add css to my module.... public function hookDisplayHeader() { $this->context->controller->addCSS($this->_path.'css/mymodule.css', 'all'); } But I noticed that the CSS is added to ALL pages of prestashop, is that what the "all" in the above line means? Since it is causing compatibility issues with other modules, I'd like to add it just where my module is used. Thanks,
- 5 replies
-
- compatibility
- add css
-
(and 2 more)
Tagged with:
-
Hi! version 1.4.4.0 I want to change background of the center column (# center_column), so that it everywhere except at the home page. On the product page is no problem - there is connected its own stylesheet. But the derivation of the main page and other pages are connected as one and same CSS. Therefore, it is impossible to divide (((( Maybe, need to connect your CSS. I do not understand how to do it. Share your thoughts. I would be glad of any information!
-
Hi, This is my first post in this forum I have been working with Prestashop a lot, and it was a good experience. Thanks for giving it for free When I develop a module, I found something inconvenient. In a module, I only use hookHome (to output things to homepage) and hookHeader (to include needed CSS/JS). But in this way, the CSS/JS files are included in every page. This is not optimized. I surely can include CSS/JS files in the hookHome, but you know, it is not standard. I doubt that Prestashop might have a way to work around with this. Do you have any suggestion?