Is there a way to hide breadcrumbs for a specific course?

Is there a way to hide breadcrumbs for a specific course?

by Rahul S -
Number of replies: 3

Im using Moodle 2.8.5 in the essential theme, and I was wondering if there was a simple way I can hide the breadcrumbs nav bar inside a specific course, but not the others.

Background of the question:

Basically, I made 2 tabs on the header of the front page, and added the files which are opened by the tab dropdowns in a course called "front page tab info" so I could use the link from inside the course and add it to custom menu items, essentially linking the drop down items in the front page tabs to the url of the item inside the course, so something shows up when the drop down item is clicked in the tab. When the file opening up is a pdf, its fine, but the problem arises when I link a page just showing text within my moodle site. Moodle shows the breadcrumbs and the students will be able to see the course with all the files I have made for the tabs, and it just seems unprofessional. I want this to be hidden.

I have attached a picture if it helps

Attachment Example.JPG
Average of ratings: -
In reply to Rahul S

Re: Is there a way to hide breadcrumbs for a specific course?

by Farhan Karmali -
Picture of Core developers Picture of Plugin developers Picture of Testers

There is no setting that would let you do that directly , you may either hide the breadcrumbs totally using CSS or modify the course view renderer to not display it when the courseid is the particular course .. This would require coding in php

In reply to Farhan Karmali

Re: Is there a way to hide breadcrumbs for a specific course?

by Rahul S -

Would you happen to know the CSS/PHP to help me with my problem? if not, thanks any ways for the input

In reply to Rahul S

Re: Is there a way to hide breadcrumbs for a specific course?

by William Lu -

Option 1: 

Use this plugin for your site files:

https://moodle.org/plugins/view/local_staticpage


Option 2:

Hide all your files/documents/pages into a Orphaned section.

Copy links of your 'Hidden' into your menu. Then, even the 'Breadcrumbs' bar still there, students can't see anything else.