Change color for Headings

Hi there,

I am looking to customize my wiki and one of the things I would like to do is have all Heading 1 sections be a different color then the other sections so they stand out. I am thinking I am going to have to do some custom CSS on the wiki, but I am not sure if it would be best to do it as a velocity script on each page or to customize a theme and put it in the advanced section.

When I inspect the page I can see the Heading 1 Sections are just a <h1> tag so maybe using the velocity macro may be best.

Thanks!

Hi @flux,

If the only thing you want to do is change the color of the h1, I can think of two options:

  1. customize your color theme in the administration and add some css in the advanced tab
  2. add an XWiki.StyleSheetExtension class to any page and select On this wiki for the Use this extension field.

Hope this helps.

PS: Iā€™m not sure Velocity would help here.

Thanks for the response! I was able to get do it with the advanced section in the customized theme section.

1 Like