Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding a link in categories box

Adding a link in categories box

Views: 659

Results 1 to 5 of 5
22 Feb 2011, 9:40 AM
#1
hylt avatar

hylt

New Zenner

Join Date:
Oct 2007
Posts:
20
Plugin Contributions:
0

Adding a link in categories box

Hi There, I've been trying to add a link in categories side box to a new form on my Zen Cart. I've tried all the posts I can find on the forum but nothing seems to work.

I'm using Zen Cart v1.3.9h with the PureGreen Free Zen Cart template and flyout menus mod.

If anybody could point me in the right direction I'd be very grateful.

Regards

Hylt

22 Feb 2011, 10:10 AM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Adding a link in categories box

Hylt:

I'm using flyout menus mod.

Hylt, are using the CSS Flyout Menu 1.3.9b?

If so, you can add a link to it by adding a line like the below example to includes/templates/CUSTOM/sideboxes/tpl_categories_css.php

This example uses an internal EZ-Page link.........yours may be different:

$content .= '<a href="index.php?main_page=page&id=15&chapter=1">My Form</a>';

Admin Note: Could you move these posts (question and answer) to the Support for CSS Flyout Menu thread, please, as that's where it should be? Thank you.

22 Feb 2011, 10:20 AM
#3
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Adding a link in categories box

Edit: Wasn't quick enough for the real edit.

So you can add some css styling to it, to make the link look the same as the others in the menu, do it like this, instead:

$content .= '<div class="form"><a href="index.php?main_page=page&id=15&chapter=1">My Form</a></div>';

Then you can style that with some css like this:

#nav-cat .form {
   background: #6495ed;
}
#nav-cat .form a {
   color: #fff;
}

Hope this helps.

22 Feb 2011, 10:27 AM
#4
hylt avatar

hylt

New Zenner

Join Date:
Oct 2007
Posts:
20
Plugin Contributions:
0

Re: Adding a link in categories box

Hi thanks for that, I was looking in the wrong place. Should have looked at the flyout menus to start with.

Sorry about posting in the wrong place.

Kindest Regards

Hylt:smile:

22 Feb 2011, 10:43 AM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Adding a link in categories box

Not a problem. Glad to help. Did that work as you needed it to?

Ah, don't worry about it. Maybe one of the Dev's will move it in a little while. If not..............I guess it'll stay here, huh? :)