Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / list item shows selected, but should not

list item shows selected, but should not

Views: 671

Results 1 to 5 of 5
28 Sep 2012, 12:47 AM
#1
mrbrizight avatar

mrbrizight

New Zenner

Join Date:
Sep 2012
Posts:
7
Plugin Contributions:
0

list item shows selected, but should not

Hi Guys -

I have modified the css for my site pretty extensively to change the colors of my menus, and when I created a new ez page and added it to my main menu, the page title is highlighted like I'm on the page - even when I'm not. I'm referring to the events item @ https://www.matrixbicycles.com

I've tried poking around in the css with the firefox developer add-on, but I can't seem to right the issue. I've thought of a few hokey workarounds like using one of my other ez pages to serve as the events page (since some of them are not essential), but I'd rather find a solid fix so I don't have issues with using ez pages in the future.

Any thoughts or suggestions are very appreciated!

28 Sep 2012, 1:07 AM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: list item shows selected, but should not

Well, you're customizing a Template Monster template, which is a problem in itself. (Search the forum to see why.)

When I examine the code of the home page, the Events link is in an LI with a class of "selected" just like it is on the Events page, so naturally the link will appear on the Home page as if it is the selected page. But other pages don't do that, so you'll have to figure out why the home page menu is wrong. In other words, it's not a CSS issue.

Rob

28 Sep 2012, 6:00 AM
#3
mrbrizight avatar

mrbrizight

New Zenner

Join Date:
Sep 2012
Posts:
7
Plugin Contributions:
0

Re: list item shows selected, but should not

Thanks Rob, that's a good point. It definitely seems like there may be something else there besides the CSS that needs fixing. It seems like since I created a new EZ page after making my CSS tweaks, that for some reason the new page is not following the same rule as the pages that came preloaded with the template. I wonder if I had created the new page before I tweaked the CSS if I would still have this problem - thoughts..?

I'm considering taking my CSS back a few steps, creating the EZ page, and then changing the CSS again, but I'd love if there was a simpler fix. Any other help/suggestions are much appreciated.

A note about template monster - I've been reading the forums enough to know everyone on here dreads their templates, but besides this one issue, I've had great luck with them so far. If I thought I knew enough to actually try to customize a zen cart template myself, I'd probably mess it up much worse than them..something about a little knowledge.... This isn't a template monster ad though -

28 Sep 2012, 1:19 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: list item shows selected, but should not

I didn't word my TM comment very well. I didn't mean that TM templates are necessarily a problem in and of themselves. I meant that trying to customize them can be a problem, because TM often removes standard ZC capabilities and replaces them with hard-coded pleasant looking screen candy. (Oops, my opinions are slipping in. :lookaroun)

You definitely don't have a CSS problem; it's a code problem. And that may well be TM's fault.

Rob

28 Sep 2012, 2:23 PM
#5
mrbrizight avatar

mrbrizight

New Zenner

Join Date:
Sep 2012
Posts:
7
Plugin Contributions:
0

Re: list item shows selected, but should not

Ok - I seem to have found the solution here. In EZ Pages, I was using the internal link url to point to the page I wanted associated with the link. I removed the link and saved my EZ page to see what would happen, and on my homepage menu, the "events" page was no longer highlighted when it should not be. I re-entered the link and saved my settings, and I'm no longer experiencing the glitch, and the link goes to the desired location. I didn't uncover the root of the issue, but thought I'd let everyone know how I fixed the problem in case you see it in the future! Rob - thanks for taking the initiative to respond to my issue!

You can check out https://www.matrixbicycles.com to see the link functioning properly.

Matt