Dashboard Headers
The headers in dashboard is set through layouts
located at
layouts/dashboard
folder.
Following is the example of default header in default layout of dashboard:
<?= $this->include('components/partials/pro/header') ?>
Note: For other headers use different layouts
Landing Page Headers
You can set different headers for different pages by following these steps:
- Locate the File:
- Open the template file for the specific page where you want to set a different header. For example, to change the header on the "index page" of landing page, navigate to the corresponding template file (e.g., app/Controllers/Modules/LandingPagesController.php).
- Update the Code:
- Update the Code: Modify the header-related code in the template file. For example, add or update the isHeader2 property as shown below:
public function index() { $this->data['title'] = 'Home'; $this->data['isHeader1'] = true; return view('modules/landing-pages/pages/index' , $this->data); }
- Below is the layout file code:
-
<?php if ($isHeader1) { ?> <?= $this->include('modules/landing-pages/components/partials/header-2.php') ?> <?php } else { ?> <?= $this->include('modules/landing-pages/components/partials/header-1.php') ?> <?php } ?>
-