Jump to content

Creating a new admin theme


pers0n
 Share

Recommended Posts

<?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

$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 .

  • Like 1
Link to comment
Share on other sites

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

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...