[pmwiki-users] How do I change the background image?

Hans design at flutesong.fsnet.co.uk
Fri Jun 17 13:06:12 CDT 2005


Friday, June 17, 2005, 6:52:20 PM, David wrote:
> 1) Is there a way to specify a default background image across a wiki
> site (background of entire page content)? (This is the one I'm 
> interested in for now)
> 2) Is there a way to set the default background image so it changes when
> the group changes (again for the page content)?

1) In config.php you can add something like this:
$HTMLStylesFmt[] = "
        body { background-image: url('pathtoimage/imagename.jpg');
               background-color:#colorcode;
               background-repeat:no-repeat; } ";

2) for group-wide background images put the above in group.php files in
your local directory, i.e. as a group customisation.
(see PmWiki/PerGroupCustomizations)

This method only works if no other divisions of the page template use
any background (color or image).
Set also a background color close to the main image colour, which is
good on the eye when the page is loading.


Best, 
~Hans                           




More information about the pmwiki-users mailing list