Custom categories menu on Moodle page

Custom categories menu on Moodle page

by T K -
Number of replies: 1

Hi all, I am using Moodle 3.4

I referred to this post to create custom categories menu on my Moodle, however the images I uploaded in .png format do not appear.

https://moodle.org/mod/forum/discuss.php?d=214923#p1062642

I uploaded the images on ../theme/boost_campus/pix/cat, below is the css:

/* Upload the image from each category */ 

.course_category_tree .category[data-categoryid="46"] {background-image: url([[pix:theme|cat/eCPD]]);} 

.course_category_tree .category[data-categoryid="47"] {background-image: url([[pix:theme|cat/BI]]);} 

.course_category_tree .category[data-categoryid="79"] {background-image: url([[pix:theme|cat/ALS]]);} 

.course_category_tree .category[data-categoryid="84"] {background-image: url([[pix:theme|cat/PB]]);} 

.course_category_tree .category[data-categoryid="86"] {background-image: url([[pix:theme|cat/TLE]]);} 

.course_category_tree .category[data-categoryid="110"] {background-image: url([[pix:theme|cat/AR]]);} 



Inspecting the page i see this link:

css link

Why is it different from my original set link? Did I miss something?

Alternatively, does anyone have other methods for a more comprehensive category menu? I'm open for ideas.



Average of ratings: -