ZenphotoCMS Forum
Static header image in Effervescence+ Theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Static header image in Effervescence+ Theme (/thread-10697.html)



Static header image in Effervescence+ Theme - dwdod - 02-01-2013

I am a new ZenPhoto user, converting from Gallery3. I am using the Effervescence+ theme and I would like for the header image to be static. I have discovered a way to make the header image change once a day versus on each page load, but I have not found a way to make it static. I apologize if this is a simple configuration setting that I have missed.

Thank you for your kind assistance.




Static header image in Effervescence+ Theme - acrylian - 02-01-2013

No configuration, you have to modify the theme.




Static header image in Effervescence+ Theme - dwdod - 02-01-2013

acrylian, can you point me to instructions for modifying the Effervence+ theme?




Static header image in Effervescence+ Theme - acrylian - 02-01-2013

Eff+ is a quite complicated theme so without coding knowledge it is not recommended. You have to change the call to the function printHeadingImage to a specific image object instead of the randomImages (see the object model tutorial how to create an image object). You will have to change this on every theme page that uses this heading.




Static header image in Effervescence+ Theme - dwdod - 02-01-2013

Sounds like more than I want to get into. I wish a static header image was configurable in the theme customization.




Static header image in Effervescence+ Theme - sbillard - 02-01-2013

Wishes get you nowhere. But making a feature request via the GitHub issues might.

But maybe the change is not so complex as acrylian has indicated. PrintHeadingImage() is local to the EF+ theme, so you can safely change it in your copy of the theme scripts. Just strip out the code that is there and put in the html to display your static image. A crude fix, but it will work without your having to change each call.




Static header image in Effervescence+ Theme - acrylian - 03-01-2013

True actually, but some coding knowledge will be require then too.