Forums / Templates, Stylesheets, Page Layout / EZ Pages dont show in header menu

EZ Pages dont show in header menu

Views: 1,459

Results 1 to 5 of 5
8 Jan 2014, 7:53 PM
#1
david_rogers avatar

david_rogers

New Zenner

Join Date:
Jan 2014
Location:
Palm Harbor, Florida
Posts:
2
Plugin Contributions:
0

EZ Pages dont show in header menu

After searching here I cannot find a solution that suits me.

My EZ pages are not showing in my header menu.

The sort values are not zero.
The light is green
They do show on the footer
The do show if I switch to the classic template. (clue?)

This is a new install, my first. Used zc_install

http://davidarogers.net/mcexpress/shop/

8 Jan 2014, 8:04 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: EZ Pages dont show in header menu

The 'clue' is it. Your template designer has disabled the EZ page links in the header, probably by removing that code in tpl_header.php.

8 Jan 2014, 8:37 PM
#3
david_rogers avatar

david_rogers

New Zenner

Join Date:
Jan 2014
Location:
Palm Harbor, Florida
Posts:
2
Plugin Contributions:
0

Re: EZ Pages dont show in header menu

This is true. He did offer a solution to another user of adding this code "where you want the ez-pages link to show on header"

<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <ul class="unstyled nomargin ezpagesHead pull-right"> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ? </ul> <div class="clearfix" /> <?php } ?>

I have tried it in two places but obviously the wrong section of the includes/templates/templateName/common/tpl_header.php file.
the result was, nothing on the page at all. No errors.

He removed it for "design" reasons. I dont understand that logic. Its pages I want to appear, not Categories.

Can anyone identify specifically where I should put the above code?

9 Jan 2014, 12:06 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: EZ Pages dont show in header menu

Not without knowing where on the header you want the links to appear. In the stock version, they show just above the categories-tabs menu.

You need to be sure you don't mix up code tags. The snippet you show includes the <?php and ?> tags, which means you need to put it outside any existing PHP tags.

9 Jan 2014, 12:16 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: EZ Pages dont show in header menu

I think disabling the ez-page headerbar for this template was an arrogant move. If a user wants that menu, it could appear in its usual location with the same styling treatment as the categories-tabs, altering the design very little, and if there are no ez-page links for the header it would never appear at all. The template installation could have included SQL settings to turn the headerbar off in admin, leaving the user able to choose later. Just my 2 cents...