Future major features

User Tours

 
Picture of Jodie Reeder
Re: Help with finding CSS selectors.
 

I am trying to write a css selector for items on the front page to highlight. In this case the book module. I have looked at the code and tried to duplicate but I must be missing something or is this even possible? 


 
Average of ratings: -
Picture of Kevin Wiliarty
Re: Help with finding CSS selectors.
Core developersParticularly helpful MoodlersPlugin developersTesters

A selector like this worked for me:

.iconlarge.activityicon[src*="image.php/boost/book"]

You can make the text to match in the src attribute more or less specific depending on your needs.

 
Average of ratings: -
Picture of Jodie Reeder
Re: Help with finding CSS selectors.
 

It works! Thanks so much.

 
Average of ratings: -