Topic on Project:Support desk

Add logo over wiki tabs

12
Suriyaa (talkcontribs)
87.123.13.89 (talkcontribs)

MediaWiki has a possibility to add a custom logo. See Manual:$wgLogo for how to do that!

This logo must have a certain size and it will be displayed in the upper left-hand corner of the screen. For the text, which you want to have in top of the page content, I would then use a second image. Maybe it is posible, to add this one using CSS on the wiki page MediaWiki:Common.css in your wiki.

Suriyaa (talkcontribs)

I already set $wgLogo for my wiki but I don't know how to set the text or image, which I want to have in top of the page content.

2003:6F:8B76:A00:B0D5:8DA0:9514:7402 (talkcontribs)

Try skin specific CSS with a non-repeating background image having a laeft margin...

Suriyaa (talkcontribs)

For example?

Ciencia Al Poder (talkcontribs)

You'll need to push tabs and content to the bottom. You can try this CSS:

(commented-out values are the current defaults)

#left-navigation, #right-navigation {
/* margin-top: 2.5em; */
	margin-top:200px;
}

div.vectorTabs {
/* height: 2.5em; */
	height: 40px;
}

#mw-head-base {
    /*margin-top: -5em;
    height: 5em;*/
	  margin-top: -80px;
	  height:240px;
}
Suriyaa (talkcontribs)

And the text to display above the tabs?

Ciencia Al Poder (talkcontribs)

Put it as a background image

Suriyaa (talkcontribs)

For example?

Ciencia Al Poder (talkcontribs)
#mw-head { background-image: url( put here the URL of the background ); }
Suriyaa (talkcontribs)

I set it:

Is it possible to use a text instead of a background-image?

Ciencia Al Poder (talkcontribs)

You can, but you'll have limited text formatting options. Definitively not 2 texts with different formats

#mw-head:after {
    content: "Example Text";
    line-height: 200px;
}
Reply to "Add logo over wiki tabs"