Hello
I have a custom footer which I would like to hide when on product / blog pages - as I think it is rather busy.
Is this possible?
http://www.sizzlingscience.co.uk/
Thanks, Melanie
Edit the tpl file of the footer extension and wrap all its code in the condition:
that will make it only display on homepage.
Code: Select all
<?php if (isset($this->request->get['route'])) { ?>
<?php if ($this->request->get['route'] == 'common/home') { ?>
....content of the tpl.....
<?php } ?>
<?php } ?>
I tried as you suggested but it made the footer disappear on all pages. I then placed the code slightly differently and managed to hid my custom footer but again only on all pages!
Thanks, Melanie
Thanks, Melanie
Code: Select all
</div></section>
<footer id="footer">
<?php if($this->config->get('sellya_status') =='1') { ?>
<?php if($this->config->get('sellya_contacts_status')== 1 || $this->config->get('sellya_twitter_block_status')== 1 || $this->config->get('sellya_custom_status')== 1) { ?>
<?php if (isset($this->request->get['route'])) { ?>
<?php if ($this->request->get['route'] == 'common/home') { ?>
<div id="footer_cnc">
<div class="container">
<div id="footer_cnc_content" class="row">
<?php if($this->config->get('sellya_contacts_status')== 1) { ?>
<div class="span<?php echo 12 / ($this->config->get('sellya_contacts_status') + $this->config->get('sellya_twitter_block_status') + $this->config->get('sellya_custom_status')) ; ?>">
<div class="contacts">
<?php if ($sellya_contacts_title) { ?>
<h3><?php echo $sellya_contacts_title; ?></h3>
<?php } ?>
<?php if ($sellya_contact_mphone1) { ?>
<span class="c_icon"><img src="catalog/view/theme/sellya/image/icons_footer/icon_contact_mphone_<?php echo $this->config->get('sellya_f1_contact_icon_style'); ?>.png" alt="Mobile Phone" title="Mobile Phone"></span>
<?php if ($sellya_contact_mphone1) { ?>
<span><?php echo $sellya_contact_mphone1; ?></span><br />
<?php } ?>
rest of the tpl ....
<?php } ?>
<?php } ?>
</body></html>
<?php } ?>
<?php } ?>
Who is online
Users browsing this forum: No registered users and 7 guests