Forums / Addon Templates / EZ pages header menu- replace links with images -crista gray

EZ pages header menu- replace links with images -crista gray

Views: 4,767

Results 1 to 20 of 28
6 Dec 2011, 12:17 AM
#1
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

EZ pages header menu- replace links with images -crista gray

Hi, I know this question has been asked before but beeing a Zen Cart noob I need a... simpler explaination o_o;; I have found some other similar threads and I read all the comments but I just can't figure out how to do this. What I really need is a step-by-step guide in simple terms.

Here is my shop:
http://battleaxe.co/shop

And here is my main site:
http://battleaxe.co

So basically I want the shop menu to look exactly like it does on the main site. Some help would be very much appreciated! :D

6 Dec 2011, 1:04 AM
#3
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Thanks very much :) I've downloaded it and I'm applying it now.. But I think I missed something. On my admin control panel, it says my EZ pages are enabled, but there are no pages showing in this section. There must be EZ pages somewhere, otherwise where are the links currently in my header coming from??

6 Dec 2011, 1:07 AM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: EZ pages header menu- replace links with images -crista gray

There must be EZ pages somewhere, otherwise where are the links currently in my header coming from??

The links currently appearing aren't EZ-Pages. Those are built-in menu items. EZ-Pages are a different animal, and somehing that you create and/or edit. Try creating a test EZ-Page to play with.

The best way to learn is to try stuff. But, back it up first.

6 Dec 2011, 1:11 AM
#5
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Thanks, I made an EZ page but it's not showing up anywhere that I can see. The links in that header must have been from the pre made template I'm using. Any idea where I could find where to edit those links? Alternatively, could I turn those links into images rather than fiddling with EZ pages?

6 Dec 2011, 1:22 AM
#6
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: EZ pages header menu- replace links with images -crista gray

When you created your test EZ-Page did you select the location in Tools/EZ-Pages by clicking a satus icon to activate it? You can choose footer, header, or sidebox and to make it appear in one of those locations you change the icon to green.

Not sure about changing the standard menu links to images. I'm sure it can be done, but it'll take somebody more skilled than I to explain how.

The best way to learn is to try stuff. But, back it up first.

6 Dec 2011, 1:30 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

Check on
Configuration > EZ-Pages Settings > EZ-Pages Display Status - HeaderBar -->set to 1

Tools > EZ-Pages > edit page > Header: select Yes Order: -->enter a number

If these don't produce any results, your template file may have been hacked up to disable the ez-page headerbar.

It would take a bunch of coding similar to Categories Dressing (for the sidebox) to dynamically swap images for cat-tabs links. Far easier to use Ezpages Improved Menus as mentioned above.

6 Dec 2011, 1:47 AM
#8
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Yeah I did all that but it's not appearing. I thought it would be easier to just edit those thinks in the template than try to change a huge chunk of code to allow ez pages. But now I have no idea where those links are.... Thank you for all your help though!!

6 Dec 2011, 1:55 AM
#9
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: EZ pages header menu- replace links with images -crista gray

Tools > EZ-Pages > edit page > Header: select Yes Order: -->enter a number

I have a bad habit of forgetting that last part when telling somebody how to setup EZ-Pages. :blush:

The best way to learn is to try stuff. But, back it up first.

6 Dec 2011, 1:57 AM
#10
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

Those links in your template are probably dynamically created, but by a custom file that we aren't familiar with. So there are no HTML links that you can edit, and we can't tell you for sure where to edit the PHP code even if you knew how to do it.

Look in your /includes/templates/your_template/common/tpl_header.php for any HTML comments referring to ez-pages, and post whatever is between those. That will tell us more about your situation.

6 Dec 2011, 2:05 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

You should have a section like this in tpl_header.php:```php

<!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links-->
6 Dec 2011, 2:13 AM
#12
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Is this what you mean? It's all I could find in the tpl_header.

<!--bof-header ezpage links-->
<div class="topper-menu float-right">
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
</div>
<!--eof-header ezpage links-->
6 Dec 2011, 2:30 AM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

That should make the ez-pages menu appear in the top right corner of the header, to the right of "Log In or Sign Up". The posted code would function the same as stock, so the question is, exactly how did you try to activate the link? List the exact steps you took in total detail.

6 Dec 2011, 2:34 AM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

By the way, that's sloppy template coding. The stock version has wrappers already and can be styled in any way you could want, but the custom version adds another wrapper div that is always there no matter if there is any ez-pages menu to display or not.

6 Dec 2011, 2:38 AM
#15
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

What do you mean by "activate the link"? Sorry if I'm sounding totally clueless here (I kind of am XD)

6 Dec 2011, 2:40 AM
#16
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: EZ pages header menu- replace links with images -crista gray

yelsha42:

What do you mean by "activate the link"? Sorry if I'm sounding totally clueless here (I kind of am XD)

Re-read his post #7.

The best way to learn is to try stuff. But, back it up first.

6 Dec 2011, 2:52 AM
#17
yelsha42 avatar

yelsha42

New Zenner

Join Date:
May 2011
Posts:
14
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Okay, so the EZ page link is appearing now (forgot to put a number in the order field). So now the question is how do I get rid of the other links and replace them with EZ pages..? This turned out to be a lot more complicated than I thought :(

If it helps, this is the original template I edited:
http://www.12leaves.com/store/crista-violet-free-zen-cart-template.html

I just downloaded the free version and changed most of the pictures and fiddled around a bit to get what is currently the shop layout.

6 Dec 2011, 3:11 AM
#18
gjh42 avatar

gjh42

Black Belt

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

Re: EZ pages header menu- replace links with images -crista gray

Move the whole ez-pages code block in tpl_header.php down to where the block containing <div id="top-nav"... is, then delete the top-nav block. That will put the ez-pages headerbar where the other links are now. Then you will need to change the styling for the ez-pages in your stylesheet(s).

I see that the top-nav block is not clearly marked off by comments. Remove everything in red.```

<!--eof-header logo and navigation display-->

<div id="top_nav">

<div id="tab_nav"> <!--<div class="top-nav-left"></div>--> <div class="top-nav-right"></div> <ul class="list-style-none"> <li class="home-link"><a href="http://battleaxe.co/shop/">Home</a></li>

[...more code...]

</ul>
</div> </div> <!-- tools section -->
6 Dec 2011, 3:14 AM
#19
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,667
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

Moderator's note: thread has been moved to AddOn Templates.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

6 Dec 2011, 3:15 AM
#20
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,667
Plugin Contributions:
0

Re: EZ pages header menu- replace links with images -crista gray

You may need to contact the template author.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.