[pmwiki-users] changing headers

Petko Yotov 5ko at 5ko.fr
Sat Aug 3 18:31:17 PDT 2024


The skin styles are usually defined in 
pmwiki/pub/skins/skinname/skinname.css or just skin.css.

To override them, you can add your own styles in the file 
pub/css/local.css - you can create it if it doesn't exist.

To change the styles of headings, for example:

   h2, h3 {
     font-family: Georgia, sans;
   }
   h2 {
     font-size: 1.3rem;
     color: darkred;
   }
   h3 {
     font-size: 1.15rem;
   }

You can actually copy style declarations from skinname.css to your 
local.css, and you only need to keep those declarations that you add or 
modify.

Styles added in this file normally override styles defined in the skin. 
Using local.css instead of modifying the skin itself will make it easier 
in the future to upgrade the skin to a more recent version without 
losing your changes.

Petko

-- 
If you upgrade :  https://www.pmwiki.org/Upgrades

On 03/08/2024 22:04, Thomas Hirtenlehner wrote:
> I'd like to change the fonts/size/etc. of the headers in my wiki, but
> I did not find yet where they are defined. could anyone point me to
> the right file?



More information about the pmwiki-users mailing list