Rotating Image Banner Added
Finally, a rotating image banner has been added back to CladLabs, just like the one when the website was running of the Drupal CMS. I used the Cimy Header Image Rotator plugin and added code to the header.php file in a child theme for ‘motion’.
I was having issues with the text element that the Cimy plugin added with the image. The default setting was for the text to be placed in the middle (both vertically and horizontally) of the image, which isn’t very appealing. I wanted the text to span the bottom of the image, and wanted to get rid of the rounded corners of the text box. To do this, I had to edit the generated code as follows (including adding an extra ‘div’ element around the entire plugin). The total size of the rotating header element is 980x300px.
Note that CSS styling is included in this html file, as provided by the generated Cimy code. If I really wanted to do this ‘properly’, I would move the CSS to the style.css file in the same folder.