Forums / General Questions / EZ Pages Footer on Home Page only

EZ Pages Footer on Home Page only

Started by nicksab on 14 Nov 2024, 3:29 AM · Views: 593

Results 1 to 6 of 6
14 Nov 2024, 3:29 AM
#1
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

EZ Pages Footer on Home Page only

I need a refresh course on how to display EZ Page Footer on Home Page only. I know how to overide it for different ez page via admin.

I basically want to hide EZ Page footer on shopping cart, login,checkout...

EZ Page Footer on Home page, categories, product pages is fine

I try to fiddle with { if_this_home_page statement but no luck so far.

Thank you for the assist

14 Nov 2024, 5:37 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,188
Plugin Contributions:
0

Re: EZ Pages Footer on Home Page only

Look into the Docs might reveal an answer.
Click the search icon and type this:
EZ-Pages Pages to disable footers

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

14 Nov 2024, 7:59 PM
#3
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: EZ Pages Footer on Home Page only

haredo:

Look into the Docs might reveal an answer.
Click the search icon and type this:
EZ-Pages Pages to disable footers

Thanks but that's if I want to disable the EZ page footer on EZ pages themselves. I am well aware of it and it is control in the admin.

I was referring to pages like product_info, shopping_cart, checkout......

14 Nov 2024, 8:30 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,735
Plugin Contributions:
56

Re: EZ Pages Footer on Home Page only

If you look at includes/templates/YOUR_TEMPLATE/common/tpl_footer.php

it will have something like:

<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>

You could wrap this in

if ($current_page_base == 'index') {
...
}

to show it on listing pages, or even

if ($this_is_home_page) {
...
}

to only show it on the home page.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2024, 3:04 AM
#5
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: EZ Pages Footer on Home Page only

swguy:

If you look at includes/templates/YOUR_TEMPLATE/common/tpl_footer.php

it will have something like:

<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>

You could wrap this in

if ($current_page_base == 'index') {
...
}

to show it on listing pages, or even

if ($this_is_home_page) {
...
}

to only show it on the home page.

Thank you very much. I am saving/bookmarking it this time :blush:

15 Nov 2024, 11:03 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,735
Plugin Contributions:
56

Re: EZ Pages Footer on Home Page only

Also, for an example of how to turn things on and off on a per page basis with a long list of pages, look at

includes/templates/template_default/common/tpl_main_page.php

and look at how $flag_disable_left is set and used.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.