Author Topic: Fruesteg > different header on each page  (Read 1033 times)

Offline bupaje

  • Posts: 592
Fruesteg > different header on each page
« on: August 24, 2021, 08:39:17 PM »
Hi again.

I am working with the Fruesteg template which looks very nice. I was asked if it is possible to have a different banner on each page. Can someone suggest best - and easiest hopefully- solution for me? I don't have enough knowledge for advanced coding or modify the template too much. Maybe a way to use php to do something to see if there is a custom header image assigned somehow to the page and use that and if not just show the default header image. Or perhaps a module I could use to assign a header image of same width as current to each page and just comment out the current one?

Your suggestions appreciated.

Burt

Offline crnogorac081

  • Posts: 2085
  • Gender: Male
Re: Fruesteg > different header on each page
« Reply #1 on: August 25, 2021, 07:34:24 AM »
Hello,
you can use Page_id for this
Code: [Select]
switch (PAGE_ID) {
    case 1:
case 2:
        echo "HEADER ONE";
        break;
    case 3:
        echo "HEADER 2";
        break;
    case 4:
        echo "HEADER 3";
        break;
    default:
       echo "DEFAULT HEADER";
}
Web developer

Offline bupaje

  • Posts: 592
Re: Fruesteg > different header on each page
« Reply #2 on: August 25, 2021, 08:37:16 PM »
I just found Dev4Me addon SmartImage and that is perfect - but thank you. It has been so long since I used WB and the page_id with a case statement is bound to come in handy.
« Last Edit: August 25, 2021, 08:47:02 PM by bupaje »

 

postern-length