Trying to hide My Home from Breadcrumb

Trying to hide My Home from Breadcrumb

by Tony Hernández -
Number of replies: 4

I'm working on Moodle 2.7.5. and I'm trying to hide "My Home" from the Breadcrumb nav bar.

If I write on my custom css 

ul.breadcrumb {display: none;} I hide the whole breadcrumb

I've written below that line 

ul.breadcrumb li:last-child {display: block;} but still hide the whole breadcrumb not showing only the last child.

¿Some clue?

Thanks. Tony

Average of ratings: -
In reply to Tony Hernández

Re: Trying to hide My Home from Breadcrumb

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

.breadcrumb li:last-child {
    display: block;
}

This will just display the last item...

In reply to Tony Hernández

Re: Trying to hide My Home from Breadcrumb

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

If you only want the Home link removed then why not just add this instead>

ul.breadcrumb li:first-child { display: none;}

In reply to Mary Evans

Re: Trying to hide My Home from Breadcrumb

by Tony Hernández -

Perfect! It works with Mary Evans solution on the custom css on the clean theme. 

Thanks a lot. 6 eyes see more than two wink

Tony

In reply to Tony Hernández

Re: Trying to hide My Home from Breadcrumb

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Well that's not bad going as I am registered partially sighted, however insight to knowing how things are styled is half the battle with Moodle.

Cheers

Mary