Hi!
It's possible to use specific CSS rules only on the page course index?
I try with this, but didnt work:
@if @"body id" == "page-course-index-category"{
//My CSS rules
}
Any help is welcome!
Any reason for simple selector by ID not be enough?
#page-course-index-category {
//My CSS rules
}
Yes, i really want to change the way the courses are shown, but only on this page:
www.mywebsite.org/course/index.php
And since there are elements on the frontpage that are called the same way, my CSS's rules works on both pages, but I just want them to do it on the course index and not on the frontpage.
Thanks
You just have to prefix all your css rules with what Trevor said (#page-course-index-category) if you use plain css or place all your rules under that selector if you use scss.
#page-course-index-category {
h3.coursename a {
color: #F98012;
}
}
Hope it helps