Hide Advanced Search

Hide Advanced Search

by Frank Black -
Number of replies: 2


I'd like to hide the 'advanced search' checkbox and label which appears above the database.

In the template CSS, I'm writing:

#advancedcheckbox {display:none;}
label[for="advancedcheckbox"] {display:none;}

The first line successfully hides the checkbox.
But the second line does not hide the label/text 'Advanced Search' in Chrome or IE.

Can any CSS guru help me out. Thanks.

Average of ratings: -
In reply to Frank Black

Re: Hide Advanced Search

by Frank Black -


I got it after about an hour of almost randomly trying different things...

#advancedcheckbox {display:none;}
#page-mod-data-view label[for="advancedcheckbox"] {display:none;}

I've never really understood CSS - I've no idea why the 'label' selector wouldn't work by itself.

Average of ratings: Useful (1)
In reply to Frank Black

Re: Hide Advanced Search

by William Lu -
Picture of Particularly helpful Moodlers

In the List template, disable editor first, then enter this:

<style>
.datapreferences {display:none;}
</style>

Clean your browser's cache, then the whole row of Advanced search will disappear.

Please note, you may wait or clean cache to see what is happening, the change of CSS lags sometimes.