Hi There,
I've done a custom opencart template for a client of ours but we're wanting to make a slight change to their homepage footer.
At the minute, we have backlinks in to our company that appear across every page of their website. Ideally, what we want is this link to only appear on the homepage of their website in the footer, so we need a custom footer, or a custom statement that shows this text only on their websites homepage.
I don't really want to have to purchase a mod to do this, but thought a conditional statement or duplicating the footer may be possible?
Any help would be appreciated.
Kind regards,
Lewis
http://www.opencart.com/index.php?route ... on_id=6788
This will allow you to display text on the footer. You can limit it to the layout 'home' to only display at home page.
This will allow you to display text on the footer. You can limit it to the layout 'home' to only display at home page.
Hi There,
I didn't really want to have to purchase a mod for this. I was hoping I could use a bit of PHP to say that If it was the homepage, show 'x', if not the homepage, show 'y'.
Does anyone know a way around this?
Many thanks,
Lewis
I didn't really want to have to purchase a mod for this. I was hoping I could use a bit of PHP to say that If it was the homepage, show 'x', if not the homepage, show 'y'.
Does anyone know a way around this?
Many thanks,
Lewis
Code: Select all
if (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home'') {
Thanks so much for this! I have a custom theme that already has a custom footer enabled by the following code:MarketInSG wrote:sometimes, the money you spend on something simple would save you more timeCode: Select all
if (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home'') {
Code: Select all
<?php if($this->config->get('tg_evisu_footer_status') == '1'): ?>
Code: Select all
<?php if($this->config->get('tg_evisu_footer_status') == '1')
AND (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home''): ?>
Using OC v1.5.4.1 with Evisu Theme
Why dont you just add the link etc. to home.tpl for the theme your using at:
catalog/view/theme/YOUR THEME/template/common/home.tpl
eg:
catalog/view/theme/YOUR THEME/template/common/home.tpl
eg:
Code: Select all
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
<h1 style="display: none;"><?php echo $heading_title; ?></h1>
<?php echo $content_bottom; ?></div>
<div>Put your code for your link etc and css to format here!</div>
<?php echo $footer; ?>
Who is online
Users browsing this forum: No registered users and 28 guests