Jump to content

Topic on Project:Support desk/Flow

Minerva Neue - unable to add new page from search

3
2001:4649:4DF:0:8C72:3BD8:2C3F:C6A3 (talkcontribs)

Hi!


I've recently immersed myself in your wonderful platform, and have installed Minerva Neue skin - looking great. I am however missing the ability to create non existing pages when searching for them - as I am used to with the standard skin (Vector, is it?)


Thanks

Tommy Rønningsveen

Ammarpad (talkcontribs)

Minerva Neue is heavily optimized for mobile use, it does not show the traditional redlink on its search result page. You can try creating pages either by using the 'desktop view', by directly editing the url or probably by making use of Extension:CreatePageUw or Extension:InputBox.

AndresBott (talkcontribs)

The relevant code is there, just hidden with css. :(

As a workaround just add a simple custom css

.searchresults .mw-search-createlink{
    display: block;
}

for example this can be added in the theme folder in a file skins/MinervaNeue/custom.css and loaded from LocalSettings.php

#see hook BeforePageDisplay
function CustomCss(&$out, &$skin ) {
    if($skin->skinname == "minerva"){
        $out->addStyle("MinervaNeue/custom.css");
    }
}
$wgHooks['BeforePageDisplay'][] = 'CustomCss';