Post by ja434650 » Sat Apr 13, 2013 10:38 am

Hey guys, you've been such a help in the past and I hope you can pull through for me on this one.

I want to make it so that the parent top menu items are "non-clickable" and only the children of those main, parent menu items (subcategories) are clickable.

I hope you understand what I'm trying to say and thanks for any help you can give me. :)

New member

Posts

Joined
Wed Apr 10, 2013 6:10 am

Post by butte » Sat Apr 13, 2013 10:48 am

Make the parents stay visible and unanchor them. No <A HREF . . .></A>, no clicking.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by ja434650 » Sat Apr 13, 2013 11:11 am

Makes sense Butte. Do you know where i might find these href links...im having a hard time finding them in the header.tpl file

New member

Posts

Joined
Wed Apr 10, 2013 6:10 am

Post by butte » Sat Apr 13, 2013 11:45 am

The category. files (those will be among .php, .tpl, in category/ subtrees, both /admin and /catalog), look them over and make backups before giving it a whirl).

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by trinkaljuneja » Sat Apr 13, 2013 4:32 pm

ja434650 wrote:Makes sense Butte. Do you know where i might find these href links...im having a hard time finding them in the header.tpl file

For header menu item
find here \catalog\view\theme\default\template\common\header.tpl


for category module
\catalog\view\theme\default\template\module\category

and search for href ;) ;)

A coder by Hobby and Developer by Profession

Images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6943
Description and images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6978

http://codertj.com


New member

Posts

Joined
Tue Aug 23, 2011 9:08 pm

Post by butte » Sun Apr 14, 2013 2:18 am

Again, the category files, wherever catagory. files appear as .php or .tpl in all subtrees (under /store/ and under /store/admin/, so you'll see the overall arrangements). There are actually THREE basic anchor-related things to look for. Straight forward anchors, such as "<A HREF=" and its closing "</A>", and onClicks, such as "onClick=", and the occasional code call for URLs, such as will appear as itself "URL". Those may all be in upper or lower case, there are reasons for using one or the other in various situations, just look for the terms and follow the machine-readable syntax, spelling, punctuation, and typewritten style you use as a model..

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 61 guests