[pmwiki-users] Suppress search field in default skin

Oliver Betz list_ob at gmx.net
Mon Mar 9 07:21:25 CDT 2009


"Patrick R. Michaud" wrote:

>On Sun, Mar 08, 2009 at 09:12:17PM +0100, Oliver Betz wrote:
>> is there a possibility to suppress the search field, especially the
>> link to the search page, in the default skin (besides changing the
>> skin)?
>
>If you don't mind losing the RecentChanges link, try the following in
>pub/css/local.css:

I even _wanted_ to suppress it too, and I already managed it by adding
$HTMLStylesFmt['hiderc'] = ' .headnav { display:none; } ';

>    .wikihead { display: none; }
>
>If you really want to keep the RecentChanges link, perhaps the
>following instead:
>
>    .wikihead a { display: none; }              /* turns off Search link */
>    .wikihead input { display: none; }          /* turns off input fields */
>    .wikihead .headnav a { display: inline; }   /* turns on RecentChanges link */
>
>You can also put the above strings into the $HTMLStylesFmt variable:
>
>  $HTMLStylesFmt['nosearch'] = '
>    .wikihead a { display: none; }              /* turns off Search link */
>    .wikihead input { display: none; }          /* turns off input fields */
>    .wikihead .headnav a { display: inline; }   /* turns on RecentChanges link */
>  ';

this doesn't seem to work - at least the HTMLStylesFmt part, I didn't
try to modify the css.

But don't bother, I will try a completely different approach.

Thanks,

Oliver




More information about the pmwiki-users mailing list