axlevxa / typowiki

TypoWiki - Simple DokuWiki Theme
GNU General Public License v3.0
6 stars 2 forks source link

Would it be possible to add an easy way to change the top bar color from black to something else? #7

Open freecicero opened 2 years ago

freecicero commented 2 years ago

I looked through several of the files here in github but I have to confess I am no expert and I could not find a setting that appeared to control the color of the top bar. Would it be possible to add an easy way to change that color, or in the meantime indicate in the readme how to do it?

thank you!

axlevxa commented 2 years ago

Hi, If you are comfortable editing the files, this is what I would suggest.

Create a new file in the css folder called custom.css. To change the nav bar color put the following:

nav .nav-bar {
    background: #2b970c  /* Replace Hex value with your color */ !important;
}

Now we need to tell DokuWiki to include this new file as part of your site's combined stylesheet.

Edit the file called style.ini. In the list titled [stylesheets], add the following at the end (line 38):

css/custom.css

Next time you go to your DokuWiki admin panel and click the save changes button, your customizations should be included. Let me know how it goes!

If you ever need to update the theme, be sure to leave these 2 files intact.