Customizing Admin theme without hacking files

  Previous article Next article  

Customizing Admin theme without hacking files

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.2
  Last updated: 13-04-2015
  Comments: 2

If you want to make small changes to the default CMSMS Admin theme, you can change the core stylesheet files with the risk of overwriting it when upgrading the CMS. But creating a custom Admin theme might be a bit of an overkill for a few changes... CMS Made Simple™ has a - not very well-known - feature for doing this without any risk! With this feature you can simply override the default Admin stylesheet declarations.

At one of my websites I have several sub domains with each its own CMS. Being afraid of making changes to the wrong website I wanted to make some layout adjustments to remember me in which website I am working. The example I will show you here is changing the default CMSMS logo with one of my own.

  How to use

Create a new folder at the webserver: website.com/admin/themes/OneEleven/extcss/
and in this new folder you create a new file named style.css with the content:

header .cms-logo img { display: none }
header .cms-logo { background: url(../uploads/_template/your-logo.png) no-repeat 10px 0 }

In the uploads folder (or in any other folder you want, just change the path in the stylesheet) you can add your own image file. The file should be a (transparent) image with a maximum height of 69px! The default image is 205px wide, but you can make it smaller or wider if you want...

Beside this example you can add all CSS declarations from the regular /css/style.css file here to change the styling of the Admin theme to your liking.


A2 Webhosting CMS Made Simple

  Working example

Default CMSMS Admin logo Custom CMSMS Admin logo

A2 Webhosting CMS Made Simple

  Comments

  Click here to leave a comment






This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
  « Enter the CAPTCHA code (lower case)

Your IP address will be stored on submit. I reserve the right to change or delete your response without notice!
In case of abuse your IP address will be blocked!


Can I have your attention for a moment?

Did this tutorial help you solving a problem at your (clients) website and it saved you many hours of work? Great!!
Consider buying Rolf a cup of coffee in return! [ Click here ]


  2 Comments

CMS Made Simple 2.2.2 - Tutorials, tips and tricks - CMSMS 2.2.2

Customizing Admin theme without hacking files

  Article optimized for CMSMS 2.x

  Author:
  Last tested in: CMSMS 2.2.2
  Last updated: 13-04-2015
  Comments: 2

A2 Webhosting CMS Made Simple