I want to make a template for a Wiki I edit, but I can't seem to recreate this box. Does anyone know if I have to ask the admins to download a script for it?
I want to make a template for a Wiki I edit, but I can't seem to recreate this box. Does anyone know if I have to ask the admins to download a script for it?
I did. It worked. But now, how do I restore the Wiki's heading style? It worked when I copied the common,css code for the Wiki, but now it has disappeared.
Nevermind, I forgot to purge the cache of the page. Thank you for you advice. I'm very much a rookie in this admin thing atm
The styles for the heading template were in the other styles, but you have figured this.
However, you missed this snippet which affects light mode. Add it as well.
.theme-fandomdesktop-light .MainPageHeading {
color: #FFFFFF;
}Also, you have to import the font used for the heading by adding this line on top of Common.css: (it MUST be on the very top)
@import url("https://fonts.googleapis.com/css2?display=swap&family=Libre+Baskerville");Where do I put it in the code?
The import has to be on top before anything else, as said.
The other thing you can put anywhere, but best would be at the end since it belongs to the heading template.
I checked, and I'm pretty sure the light mode snippet is near the top of the code already.
https://herois.fandom.com/pt-br/wiki/MediaWiki:Common.css
That's the light mode styles for the affiliate template.
This one is for the heading template.
https://herois.fandom.com/pt-br/wiki/Predefini%C3%A7%C3%A3o:Cabe%C3%A7alho
Where exactly do I put it? It doesn't seem to be working when I paste it
Add this:
.theme-fandomdesktop-light .MainPageHeading {
color: #FFFFFF;
}at the end of https://herois.fandom.com/pt-br/wiki/MediaWiki:Common.css
This is what it does (in light mode only):
Now:
After:
Somehow, it isn't working. Do you have any idea on what might be causing it?
What do you think?