Jump to content

Topic on Skin talk:Liberty

MW 1.35 Cannot change the logo

2
Gribouillot (talkcontribs)

HI

in the local settings :

wfLoadSkin( 'Liberty' );

$wgDefaultSkin = "Liberty";

$wgLibertyOgLogo ="{$wgScriptPath}/resources/assets/wiki.png";


but the logo is "Libre". No change.Thanks

~~~~

Jack Phoenix (talkcontribs)

The $wgLibertyOgLogo is not the site logo, but rather for the Open Graph protocol only (hence Og); this is what sites like Facebook etc. use for displaying a brief preview of the page you're about to share or something along those lines (I don't use social media sites, so I'm not too familiar with their inner workings).

I'm not quite sure how you'd go about changing the actual logo, the files skins/Liberty/css/default.css and skins/Liberty/css/default_mobile.css have these CSS rules:

/* from skins/Liberty/css/default.css: */
.Liberty .nav-wrapper .navbar .navbar-brand {
	height: 2.8rem;
	width: 6.6rem;
	background: transparent url(../img/logo.png) no-repeat scroll left center/auto
		1.9rem;
	padding: 0;
	margin: 0;
}

/* from skins/Liberty/css/default_mobile.css: */
.Liberty .nav-wrapper .navbar .navbar-brand {
	width: 5rem;
	background: transparent url( ../img/logo.png ) no-repeat scroll left center/auto 1.5rem;
}

Perhaps you can create your own logo image like LibreWiki's and then specify something like this in your wiki's MediaWiki:Liberty.css:

.Liberty .nav-wrapper .navbar .navbar-brand {
	background-image: url( https://wiki.example.com/w/path/to/your/cool/custom/logo-image.png );
}

And if that definition doesn't work, try adding an !important to it for good measure, like so:

.Liberty .nav-wrapper .navbar .navbar-brand {
	background-image: url( https://wiki.example.com/w/path/to/your/cool/custom/logo-image.png ) !important;
}
Reply to "MW 1.35 Cannot change the logo"