Changing default course images for all courses

Changing default course images for all courses

by Dirk Meyer -
Number of replies: 5

Hello.

I am interested to learn how to change the default course images in Moodle 3.6 It seems the default images are created on the fly using svg images (data:image/svg+xml ........) This does not make it easy/possible to change them? Below are two screen shots. Screen shot one is from our Moodle site. Note that I changed one already manually from within the course  but want to change all for our entire site. Screen shot two is from a D2l (Brightspace) LMS.

Any help would be appreciated.





Average of ratings: -
In reply to Dirk Meyer

Re: Changing default course images for all courses

by Yao-Ting Huang -
Just second you with the same issue and couldn't find any solution.
In reply to Yao-Ting Huang

Re: Changing default course images for all courses

by Dirk Meyer -

Looking at a tracker item, it looks like there is some re-working on this but no mention of replacing images. https://tracker.moodle.org/browse/MDL-62683

In reply to Dirk Meyer

Re: Re: Changing default course images for all courses

by Flotter Totte -
Picture of Plugin developers
Do you want to set one default image for all courses or have a page where you can put image a to course 1, image b to course 2 etc.? In case you want to have 1 default image, you could use the course templates plugin from the moodle db and in the template course at your default image. Then all courses which you create in the future based on the template course would have that image.
In reply to Dirk Meyer

Re: Changing default course images for all courses

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi,

until the new version come you can easily do it with CSS in Moodle admin.

.card-img-top {
    background-image:url('https://upload.wikimedia.org/wikipedia/commons/2/28/CC_blue_heart.png') !important;
 }

you can add the CSS in the theme in "Advanced settings"

Code SCSS initial  -> theme_boost | scsspre

if you put display none, you don't any image if you wich. etc.

The CSS selector can be probably more save by adding something in front !


Average of ratings: Useful (3)