• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Rotating header images


Well-known member
I would like to implement rotating header images via scripting .. how is this done with xenForo. I will be using imagerotator addon from longtail video, so I already have the code and everything that I need. I just need to know where to place it and can it be done via ACP or template modification. Please advise.


Well-known member
I already have source code to make it happen... I want to add directly to generated HTML, hopefully via custom HTML widget if it exists.

Jake Bunce

XenForo moderator
Staff member
If you just need to insert your code into the HTML then you can edit this template:

Admin CP -> Appearance -> Templates -> logo_block

This template contains the code for the header image.


Well-known member
where do I place this code on order to have them display in the page header?

<  img src="http://path_to_images/header_<?php echo(rand(1,5)); ?>.jpg"
width="image_width" height="image_height" alt="image_alt_text" />