Hide Advanced Search

Hide Advanced Search

Frank Black -
回帖数: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.

回复Frank Black

Re: Hide Advanced Search

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.

回复Frank Black

Re: Hide Advanced Search

William Lu -
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.