Hide Global Search from Quiz pages

Hide Global Search from Quiz pages

by John Provasnik -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Testers
What theme are you using? You would need to check the theme to see the class of that search box and then add some custom css such as #page-mod-quiz-attempt SOMETHING HERE {display: none;} to remove that search box when on a quiz attempt page.
Average of ratings: Useful (1)
In reply to John Provasnik

Re: Hide Global Search from Quiz pages

by Jason Lane -
Hello John and thanks for your suggestion. I am using Boost Campus theme. Sorry for not replying to you!

I have managed to locate this from the CSS code:

#page-mod-quiz-attempt .search-input-wrapper {
display: none;
}

The Boost Campus theme uses ID ="page-mod-quiz-attempt" in the BODY tag so I am able to assign display: none attribute to the .search-input-wrapper class.

Thank you!