Topic on Project:Support desk

How to remove/disable page information in search results

3
Summary by AhmadF.Cheema
#mw-content-text > div > ul > li > div.searchresult { display: none }
#mw-content-text > div > ul > li > div.mw-search-result-data { display: none }
94.126.6.22 (talkcontribs)

Hi! I'm not really good with coding and are having problems with removing/disabling page information in my search results. I use the standard search engine. In the attached picture I have marked in red which information I want to remove/disable; I would like to just have list of page titles as search results.

https://olfred.org/nydansk/sojeksempel.jpg

The page in question is https://olfred.org/nydansk/orbaaw

AhmadF.Cheema (talkcontribs)

Try setting the following in your Wiki's MediaWiki:Common.css,

#mw-content-text > div > ul > li > div.searchresult { display: none }
#mw-content-text > div > ul > li > div.mw-search-result-data { display: none }

For future reference, you can make use of browser developer tools (F12) to select and edit the CSS of a web page's elements.

94.126.6.22 (talkcontribs)

It worked, thank you so much!