Jump to content

How to display a random logo image?


GarethM

Recommended Posts

Posted

Hi, at the moment in my logo template file I've got code for a retina logo image:

<a href='{setting="base_url"}' id='elLogo' accesskey='1'><img src="http://www.the-stronghold.com/uploads/pages_media/5782ce3821314_1_LogoSmall.png" srcset="http://www.the-stronghold.com/uploads/pages_media/1_Logo.png 2x" alt='The Stronghold - Dedicated to Destruction'></a>

Now I'd like to change this so a random logo is displayed on each page load out of a set of 3 different logos. How would I go about this? A php custom block? I still want to have retina logos for each logo too.

Thanks for any help!

Posted

I think I've just figured it out! :D

I've put a php array in a php custom block and called the block into the logo template file, seems to be working!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...