WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R22 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Fruesteg > different header on each page
  • Print
Pages: [1]   Go Down

Author Topic: Fruesteg > different header on each page  (Read 6813 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
Logged

Offline crnogorac081

  • Posts: 2168
  • 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";
}
Logged
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 »
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Fruesteg > different header on each page
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2