Jump to content

Recommended Posts

Posted
<?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. :(

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

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 :(

  • 2 weeks later...
Posted

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.

Posted

Martijn Geerts thank you.

I will try to help people when I get some time. Got busy with Family and some other stuffs.

  • Like 1

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
  • Recently Browsing   0 members

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