I am fairly new to XWiki but I have a small but important question.
For our main page in our wiki we want to have an image as the background, but I have no idea how to do it and wasnt able to find anything regarding that topic. I hope somebody will be able to help me with my problem.
Seems this is very hard to do if youāre not already a skilled coder.
Iād like to know this as well, web searches bring up results with steps that do not apply to the newest versions of xwiki.
Accessing the Theme Editor:
Navigate to Administration > Look & Feel > Themes > Color Theme.
Select the theme you want to modify and click Customize.
Modifying the CSS:
Go to the CSS section within the theme editor.
Find the CSS rule that styles the body element (or create one if it doesnāt exist).
Add the following CSS property to the body rule:
I canāt seem to find any CSS section under Iceberg, which is what Iām using.
Thatās crazy, you need a comp-sci degree to follow that page.
Themes Iāve worked with in the past for other types of sites have adding a background image built into the admin GUI. I donāt necessarily need that, but someone who knows what theyāre doing writing up a nice step by step set of instructions on how to add a background would be greatly appreciated.
I can follow along with steps such as I posted, unfortunately, those are just wrong. Poor AI canāt catch a break.
I put this into the LESS area, and there were no changes.
body {
background-image: url("bin/download/FlamingoThemes/Iceberg/forrest.jpg"); /* Replace with your image path */
background-size: cover; /* Make the image cover the entire page */
background-repeat: no-repeat; /* Prevent the image from tiling */
background-position: center; /* Center the image */
}
Once I put in the full path, it worked. What would the relative path be for that image?
I uploaded it through the themeās ālogoā upload interface.
Once I put in the full path, it worked. What would the relative path be for that image?
I uploaded it through the themeās ālogoā upload interface.
Not sure if you will ever see this, but Iām just getting around to setting up my own self-hosted site with wiki. I was able to get a background image loaded as an attachment to the theme customization page (same result as if you had uploaded it via the logo upload):
// Custom background for all pages body.skin-flamingo { background-image: url(ā/xwiki/bin/download/FlamingoThemes/Slate/BackgroundTest.jpgā); background-size: cover; /* Make the image cover the entire page / background-repeat: no-repeat; /Prevent the image from tiling/ background-position: center; /Center the Image/ background-attachment: fixed; / optional: keeps background steady on scroll */ }
It seems the issue with your path is that you are missing the /xwiki/ at the front.