pers0n Posted February 28, 2014 Share Posted February 28, 2014 <?php include("/wire/templates-admin/default.php"); $config->styles->append("/site/templates-admin/styles/custom.css"); $config->scripts->append("/site/templates-admin/scripts/custom.js"); I want to make a theme that just adds on to what is already the default admin theme, but for it to add a CSS and JS file to the head, so I can just have my custom stuff work. Is this not possible? So far it isnt working and the files exist. Link to comment Share on other sites More sharing options...
Soma Posted March 1, 2014 Share Posted March 1, 2014 If you put it before default.php? Link to comment Share on other sites More sharing options...
Hari KT Posted March 1, 2014 Share Posted March 1, 2014 $config->styles->append("/site/templates-admin/styles/custom.css"); $config->scripts->append("/site/templates-admin/scripts/custom.js"); Not PW guru myself, are you getting the things rendered in view source ? If so what are you getting the url as and when clicking the same are you getting the desired output . 1 Link to comment Share on other sites More sharing options...
pers0n Posted March 3, 2014 Author Share Posted March 3, 2014 Putting the append lines before the default.php, doesn't make them load either I'm getting things rendered as the default admin theme does them, but its not putting my custom.css or custom.js files anywhere in the source Link to comment Share on other sites More sharing options...
pers0n Posted March 12, 2014 Author Share Posted March 12, 2014 I'm guessing this isn't possible. I've seen where you can set it up so that you can pull the PW standard admin and then override ALL the CSS files, but I just want to append 1 CSS and 1 JS file at the end of the standard admin. Link to comment Share on other sites More sharing options...
kongondo Posted March 12, 2014 Share Posted March 12, 2014 Btw, are you talking about the new admin themes (modules) or the older style (pre PW 2.4)? Link to comment Share on other sites More sharing options...
Martijn Geerts Posted March 13, 2014 Share Posted March 13, 2014 Not PW guru myself, are you getting the things rendered in view source ? Then you need more likes, I gave you one xtra. (I appreciate that you're here) 2 Link to comment Share on other sites More sharing options...
pers0n Posted March 14, 2014 Author Share Posted March 14, 2014 This is for PW 2.4 Link to comment Share on other sites More sharing options...
Hari KT Posted March 18, 2014 Share Posted March 18, 2014 Martijn Geerts thank you. I will try to help people when I get some time. Got busy with Family and some other stuffs. 1 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