luzmartinez Posted August 24, 2017 Share Posted August 24, 2017 I installed the new reno admin theme and I want to change the admin logo. If I change the logo inside the site / modules / AdminTheneReno / styles / images / logo.png in my local machine works great! But when I try to do on the remote server it seems not working, the same for the image inside my custome page "instruction.php" I just overwrite the "processwire" icon with other .png files The problem is on my remote server? Link to comment Share on other sites More sharing options...
szabesz Posted August 24, 2017 Share Posted August 24, 2017 I cannot find the topic dealing with this issue but as far as I recall in PW 3.x it no longer works as it used to be. I just used a JS hack: //replacing the logo: var logo_o = $("#branding #logo"); logo_o.attr("href", "/"); var innerHtml_str = logo_o.html(); var updated_str = innerHtml_str.replace("/wire/modules/AdminTheme/AdminThemeReno/styles/images/", "/site/templates/admin/"); //path to dir containg my logo logo_o.html(updated_str); logo_o.show(); //initially made hidden with display: none; so we need to turn it on. This is to prevent flashing. I also use a css rule to hide the logo initially otherwise it flashes once (see last line in JS above) There are various ways to add css/js to the admin, eg some: http://modules.processwire.com/modules/admin-custom-files/ http://modules.processwire.com/modules/admin-on-steroids/ Or simply in config.php: $config->scripts->add($config->urls->templates . "admin/admin_global.js"); $config->styles->append($config->urls->templates . "admin/admin_global.css"); 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