General help

Remove Search Courses and All Courses

 
 
Picture of Kerry Enns
Remove Search Courses and All Courses
 

After my student log-in to Moodle they get a page that lists the courses in which they are enrolled.  They also see the Search Courses box and the All Courses button.  Is there a way that I can remove these two?

I'm using the Anomaly theme, if there is a CSS-related solution here.

 
Average of ratings: -
Mary Cooch
Re: Remove Search Courses and All Courses
Group Documentation writersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup TestersGroup Translators
In site admin>courses there is a box you can check to hide the "all courses" link. Another way is to enable MyMoodle in site admin>appearance and this way students will only see the courses they are enrolled in and nothing else.
 
Average of ratings:Useful (2)
Picture of Michael Mills
Re: Remove Search Courses and All Courses
 

Mary,

I'm pretty new to Moodle but I've been unable to locate the checkbox to hide all courses I'm using version 1.9.  I have MyMoodle setup the only thing I need to do now is hide the allcourses link in the course.

Mike

 
Average of ratings: -
Picture of John St
Re: Remove Search Courses and All Courses
Group Developers
You can hide the course search box with:
<
in your template.
 
Average of ratings:Useful (1)
Picture of skanda pm
Re: Remove Search Courses and All Courses
 
Hi,

Is there any admin interface to hide course search box on student login?

Once the student login and search for a course, the student can view the teacher's profile. How to disable teacher profile?

Guide me on this.
 
Average of ratings: -
Picture of Michael Vollmer
Re: Remove Search Courses and All Courses
 

Can you please explain what you mean by this?  Thanks!

 
Average of ratings: -
Picture of Sharon Betts
Re: Remove Search Courses and All Courses
 

I would like to remove this from the front page in Moodle 2.0 installation.  Can someone point me in the correct direction?

Sharon

 
Average of ratings: -
Picture of Sue Holtz
Re: Remove Search Courses and All Courses
 

I have the same question. Moodle 2.0.

 
Average of ratings: -
Picture of Isabelle Langeveld
Re: Remove Search Courses and All Courses
 

Can someone post a solution on this matter? Can't find it..

 
Average of ratings: -
Louise
Re: Remove Search Courses and All Courses
 

I'm also looking for how to do this in v2.1.1

 
Average of ratings: -
Picture of Helen Foster
Re: Remove Search Courses and All Courses
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

In Moodle 2.0 onwards, you can hide the All courses link by ticking the checkbox in Settings > Site administration > Plugins > Blocks > Course list.

 
Average of ratings: -
Louise
Re: Remove Search Courses and All Courses
 

Hi Helen,

That removes it from the Courses block, but it's the search bar and 'All courses' button at the bottom of the front page that I need to remove (screengrab below), so users cannot see what other courses are on the system.

Is this possible?

Thanks,

Louise


 
Average of ratings: -
Picture of Helen Foster
Re: Remove Search Courses and All Courses
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

To remove the search courses and all courses options on the front page, you need to make sure that the list of courses and the combo list is NOT selected in the front page settings.

Alternatively, you can make sure users are enrolled in at least one course before they log in, as the front page will then display only the course(s) they are enrolled in.

 
Average of ratings: -
Louise
Re: Remove Search Courses and All Courses
 

Unfortunately even if students are enrolled in courses the search bar still appears if you have the list of courses on the front page.

The only workaround seems to be to have the Courses block and no front page items when they log in.

 
Average of ratings: -
Picture of Hartmut Scherer
Re: Remove Search Courses and All Courses
Group Particularly helpful Moodlers

Hi Louise,

Did you try out adding the following lines at the bottom of style.css?
#coursesearch, #coursesearch2 {
    display: none;
}

With kind regards,

Hartmut

 
Average of ratings:Useful (2)
Picture of Jeroen Vi
Re: Remove Search Courses and All Courses
 

Hi,

or go to moodle/theme/*themename*/layout/general.php, and delete

div class navbutton phpecho page button /div

Jeroen

 
Average of ratings: -
Picture of Anna Etincelles
Re: Remove Search Courses and All Courses
 

Hey Hartmut,

I know this is an old post but I would love to remove the "All course" button at the bottom. So may I know which style.css file you're referring to?

Thanks!

 
Average of ratings: -
Picture of Ron Meske
Re: Remove Search Courses and All Courses
Group Particularly helpful Moodlers

Hello,

This has been an ongoing problem for many and the only work around has been to modify code.  I have placed this in the tracker with the hopes that we may have a fix incorporated into core.  Please add your own comments and vote for the change if you would like to see this implemented.

https://tracker.moodle.org/browse/MDL-45883

 
Average of ratings: -
Picture of Hartmut Scherer
Re: Remove Search Courses and All Courses
Group Particularly helpful Moodlers

Hi Anna,

In Moodle 2.7 you need to add the following lines to Custom CSS:

#allcourses {

display: none;

}

The CSS file is in theme > yourselectedtheme > style > style.css (or custom.css in Clean M2.7)

With kind regards,

Hartmut

 
Average of ratings:Useful (1)
Picture of Anna Etincelles
Re: Remove Search Courses and All Courses
 

Hey Hartmut!

Thanks for the reply. I'm still not sure where to put the codes in. I'm using the theme Splash and I have these css files:

  1. blue.css 
  2. green.css
  3. orange.css
  4. red.css
  5. crumbs.css
  6. core.css
  7. editor.css
  8. menus.css
  9. pagelayout.css
  10. settings.css

I tried putting in core.css, menus,css and pagelayout,css but the "All courses" still appear. Help!

Thanks!

 
Average of ratings: -
Picture of Hartmut Scherer
Re: Remove Search Courses and All Courses
Group Particularly helpful Moodlers

Hey Anna,

I switched to the Splash theme and added

.block .footer {

display: none;

}

at the bottom of theme/splash/style/sl.css. In your setup I would start adding the code in core.css and purge all caches. When I added the code, it was no longer visible in "Course categories" in Site home. I hope it will work out now.

With kind regards,

Hartmut

 
Average of ratings: -
Picture of Anna Etincelles
Re: Remove Search Courses and All Courses
 

Hey thanks for your reply but may I know, you said sl.css? It's which one? Cause there's no sl.css under the splash/style folder.

 
Average of ratings: -
Picture of mano bobi
Re: Remove Search Courses and All Courses
 

Go to selected theme of your moodle.

Open CSS files and search "#coursesearch".

add css rule display: none;

add this as it is

.singlebutton

{

display:none;

}


 
Average of ratings: -
Picture of Nitin Jain
Re: Remove Search Courses and All Courses
 

Display none to singlebutton class is not a good idea because this class is used at my other places and all buttons using this class with go off.

instead add this inside Yourtheme /style /anycss file.css

#frontpage-course-list .paging-morelink a {display:none !important;}


This would make sure, only "All courses" button will be hidden


Thanks

 
Average of ratings: -
Picture of Ben CI
Re: Remove Search Courses and All Courses
 

Hi, Nitin.

I've added #frontpage-course-list .paging-morelink a {display:none !important;} inside theme/evolved/style/custom.css and there are no changes.

I've done the same thing in theme/evolved/style/evolved.css and it doesn't work either.

Does anybody know how can I hide "All courses" link in Evolve-d theme?

Thanks a lot!

 
Average of ratings: -
Picture of Ben CI
Re: Remove Search Courses and All Courses
 

Hello, Hartmut

I´ve added

#allcourses {

display: none;

}

in my theme's (evolved) custom.css and there are no changes.

I've added it to evolved.css too, but the problem still goes on.

Do you know how I can hide "all courses" button in this theme's front page?

Thanks a lot in advance!

 
Average of ratings: -
Picture of Ben CI
Re: Remove Search Courses and All Courses
 

This is a print screen of the link that appears:

All courses link

 
Average of ratings: -