KenFranklin Posted January 18, 2017 Share Posted January 18, 2017 How to add css file to the end of BO? hookDisplayBackOfficeHeader dont work Link to comment Share on other sites More sharing options...
vekia Posted January 18, 2017 Share Posted January 18, 2017 how you add these .css styles? public function hookDisplayBackOfficeHeader() { $this->context->controller->addCSS(($this->_path) . 'example.css', 'all'); } this i use in all my modules and it works well Link to comment Share on other sites More sharing options...
KenFranklin Posted January 18, 2017 Author Share Posted January 18, 2017 Thank you. But for example if I need to declare some *.js. hookDisplayBackOfficeHeader give me scripts before JQuery plugin. What to do? Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2017 Share Posted January 19, 2017 if you want to add js file just use AddJs function instead Link to comment Share on other sites More sharing options...
KenFranklin Posted January 19, 2017 Author Share Posted January 19, 2017 (edited) Ok, but how to add to the end, because this variant add *js before native Prestashop jQuery plugin Edited January 19, 2017 by ken5 (see edit history) Link to comment Share on other sites More sharing options...
Chris-hh Posted March 2, 2017 Share Posted March 2, 2017 Hello Guys, im new here and get my first presta project with version 1.7. why i cant ad my own style in the theme.yml? assets: css: all: - id: assets_id path: assets/css/my.css priority: 100 inline: true media: all i see in the stylesheet.tpl {foreach $stylesheets.external as $stylesheet} <link rel="stylesheet" href="{$stylesheet.uri}" type="text/css" media="{$stylesheet.media}"> {/foreach} now i think i can add more in the theme.yml it is possible that i must start compiler or somthing else? alternative i try to add my sass file in "_dev/css/" i hope it was compile to theme.css. secound question, it is possible to overwrite "_dev/js/lib bootstrap.min.js with newer versions in past? on the backend i dosent find anythin for compiling styles or somthing. pls help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now