Brownangel Posted July 14, 2008 Share Posted July 14, 2008 Hello, Does anyone know how to Highlight/Bold my Category Links once the customer clicks on the link to enable them differentiate what links they've visited and vice-versa. Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2008 Share Posted July 14, 2008 You cauld add to catalog/stylesheet.css something like A:visited { color:#6600FF; text-decoration:underline; font-weight:bold; } But that would change all of your links in your store. So you could define neww classes in the stylesheet and call that class in catalog/includes/boxes/categories.php like so. stylesheet A.cat_links { color: #000000; text-decoration: none; } A.cat_links:visited { color:#6600FF; text-decoration:underline; font-weight:bold; } A.cat_links:hover { color: #AABBDD; text-decoration: underline; } catalog/includes/boxes/categories.php find this code $categories_string .= '<a href="'; [/cdoe] Change to [code] $categories_string .= '<a class="cat_links" href="'; Link to comment Share on other sites More sharing options...
Brownangel Posted July 14, 2008 Author Share Posted July 14, 2008 You cauld add to catalog/stylesheet.css something like $categories_string .= tep_href_link(FILENAME_HATS, $cPath_new) . '">'; } else { $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) Link to comment Share on other sites More sharing options...
Brownangel Posted July 14, 2008 Author Share Posted July 14, 2008 I changed the categoris string code. how do i make the edits. Code below $categories_string .= tep_href_link(FILENAME_HATS, $cPath_new) . '">'; } else { $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) Or is it the code below you want me to edit the a class to reflect the highlight code in stylesheet. Let me know $categories_string .= '<img src="images/sign_link.jpg" width="13" height="14"> <a class="m11" href="'; if ($tree[$counter]['parent'] == 0) { Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2008 Share Posted July 14, 2008 The one to change is the one you listed above. however you already have a class definition in there so redo links like so A.m11 { color: #000000; text-decoration: none; } A.m11:visited { color:#6600FF; text-decoration:underline; font-weight:bold; } A.m11:hover { color: #AABBDD; text-decoration: underline; } This is the code that is bringing in the " m11 " class $categories_string .= '<img src="images/sign_link.jpg" width="13" height="14"> <a class="m11" href="'; Link to comment Share on other sites More sharing options...
Brownangel Posted July 14, 2008 Author Share Posted July 14, 2008 The one to change is the one you listed above. however you already have a class definition in there so redo links like so A.m11 { color: #000000; text-decoration: none; } A.m11:visited { color:#6600FF; text-decoration:underline; font-weight:bold; } A.m11:hover { color: #AABBDD; text-decoration: underline; } This is the code that is bringing in the " m11 " class $categories_string .= '<img src="images/sign_link.jpg" width="13" height="14"> <a class="m11" href="'; Thanks alot it works however I moved my Product list to a different page other than index.php where the categories is listed and so customers have to click a back button to go back to the categories page and the format is lost when do that - no highlight/bold other than that it works when my product listing is on index page Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.