mallory885 Posted February 14, 2006 Posted February 14, 2006 Hello I hope i am posting to the right area. I am really stuck here. the way the categories.php works is that it uses the " " to indent the sub menu items and the sub sub menu items. If you change the font size in the CSS stylesheet then it changes it for all of them. I dont want that. I want to be able to target the specific top level, sub level and sub sub level items so i can put a different style on each. I have found nothing like this out there. It seems to be a very legitimate request. anyway i am working on a specific piece of code trying to target the sub items. here it goes if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="top" >'; } else if ($tree[$counter]['parent'] == 1){ $cPath_new = 'cPath=' . $tree[$counter]['path']; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="subnav" >'; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="sub_subnav" >'; } It reads the top and the sub_subnav but how do i determine the sub item and not the sub sub items I hope this makes sense.. thanks so much TM Quote
mallory885 Posted February 14, 2006 Author Posted February 14, 2006 Anybody Out there? Any suggestions.???? if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="top" >'; } else if ($tree[$counter]['parent'] == 1){ $cPath_new = 'cPath=' . $tree[$counter]['path']; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="subnav" >'; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="sub_subnav" >'; } It reads the top and the sub_subnav but how do i determine the sub item and not the sub sub items I hope this makes sense.. thanks so much TM Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.