WebsiteBaker Support (2.8.x) > Droplets & Snippets

different banner on different pages

(1/2) > >>

MicahK:
How do I have a banner on say, Home, and a different banner on Contact Us?
Thanks,

Micah

BerndJM:
Hi,

have look at the "Randomimage" Snipplet you can find at the addons page.
In addition you can should perform a search here in the forum for "random image" and you'll find some interesting stuff about it

Regards Bernd

MicahK:
I thought about using the Random Image mod, but that will not work, as I need the banner to replace the main banner and not change, but only on certain pages.  I tried Sections, but could not get them to work... 

marathoner:
I think it depends on your objective. Is it to have a random image or is the objective to use a given banner for certain pages (i.e. the contact us page would always use the contact us banner). If it's the later (which it sounds like) then you have several options:

1) Learn how to use sections
2) Create different templates that are exactly the same except for the banner and then use that template for the appropriate page
3) Use a little PHP in your template so that if page_id=1 then use banner1, and if page_id=2 then use a different banner.

MicahK:
It is to have a given banner for a given page, you are correct.
I would prefer to use PHP, but I don't know it well enough.  Maybe I can find something I can use online.
The template idea would be a good bit more work, but I will try that.
Thanks!

Navigation

[0] Message Index

[#] Next page

Go to full version