I have get an header.twig file. I need to display this header in home page differently than in others pages. How to do that?
So in home page header should be with menu and background images. In another case with another image.
catalog/controller/common/header.php
Code: Select all
if (!isset($_GET['route']) || (isset($_GET['route']) && $_GET['route'] == 'common/home')) {
return $this->load->view('common/your_header', $data);
} else {
return $this->load->view('common/header', $data);
}
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
Who is online
Users browsing this forum: No registered users and 59 guests