Post by oliwin » Fri Oct 27, 2017 5:03 am

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.

New member


Tue Jan 10, 2017 2:00 am

Post by yodapt » Fri Oct 27, 2017 8:52 am


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

User avatar
Active Member


Fri Jun 17, 2011 6:39 pm

Who is online

Users browsing this forum: No registered users and 15 guests