SMP
💖 Chevereto Fan
Seen some of you request this... so here you go...
Note: This disables the upload functionality in dashboard.
1) Go to... app/themes/Peafowl/header.php
Find:
Replace it with:
2) Change the number 10 to the no of images you wish to add.
3) Upload your images with below file names to content/images/system/default/ folder..
For 5 covers...
home_cover1.jpg
home_cover2.jpg
home_cover3.jpg
home_cover4.jpg
home_cover5.jpg
etc
N Joy
Note: This disables the upload functionality in dashboard.
1) Go to... app/themes/Peafowl/header.php
Find:
Code:
<style>
#home-cover {
background-image: url(<?php echo CHV\get_system_image_url(CHV\Settings::get('homepage_cover_image')); ?>);
}
</style>
Replace it with:
Code:
<style>
#home-cover {
background-image: url("<?php $rPic = rand(1,10); echo G\get_base_url('content/images/system/default/home_cover'); echo $rPic; ?>.jpg");
}
</style>
2) Change the number 10 to the no of images you wish to add.
3) Upload your images with below file names to content/images/system/default/ folder..
For 5 covers...
home_cover1.jpg
home_cover2.jpg
home_cover3.jpg
home_cover4.jpg
home_cover5.jpg
etc
N Joy
Last edited: