Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Adding Banners

darkalchemy edited this page Mar 13, 2019 · 5 revisions

Banners can be images or videos and are expected to have the dimensions 1000x185.

Images and videos MUST be added as an array.

To add image banners simply add the image to the public/images folder and then add the image filename to the array $site_config['banners']. If more than 1 image is in the array, one is chosen, at random, on each page load.

To add video banners, you should have both an mp4 and webm version of the video. Then, place them in the public/images folder and add only the filename(no extension) to the $site_config['video_banners'] array. Again, if more than 1 video is in the array, 1 is chosen, at random, on page load.

Video banners take precedent over image banners, so only when the $site_config['video_banners'] is empty will $site_config['banners'] be used.