LisaC Posted March 21, 2007 Posted March 21, 2007 I have searched the forum and found the general area to remove what I want but I don't know what part of the code to remove. here is my site http://ljgdesign.com See on teh column left there are green arrows next to the category links. I would like to get rid of those arrows. I figure it is on the following page in this code that I need to edit but not sure where - can someone help? categories.php Somewhere between lines 38 - 99 $categories_string .= '<a'; if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) { $categories_string .= ' class="activelink"'; } if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= ' href="'.tep_href_link(FILENAME_DEFAULT, $cPath_new); $categories_string .= '">'; // display category name if (tep_has_category_subcategories($counter) || $tree[$counter]['level'] == 0) { if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_down.gif', '', '9', '9') . "</span>"; } else { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>"; } } else { $categories_string .= '<span class="catwithnosubs">' .tep_image(DIR_WS_IMAGES . 'categories/arrow_bullet.gif', 'nokta', '9', '9') . "</span>"; } //category name $categories_string .= $tree[$counter]['name']; if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) { //end of active link $categories_string .= ''; } if (tep_has_category_subcategories($counter)) { $categories_string .= ''; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= '(' . $products_in_category . ')'; } } // $categories_string .= '<br>'; $categories_string .= '</div>'; if ($tree[$counter]['next_id']) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <tr> <td>
Guest Posted March 21, 2007 Posted March 21, 2007 An easy way to find images like this is to right click the image and select "save as". A dialog box should pop-up asking you where you want to save it. By default, it will use the original images name. By doing that on the green arrow on your site, it comes up with the name "arrow_right.gif". Then you can search the code for that and you'll see where it is located. ... else { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>"; } ...
LisaC Posted March 21, 2007 Author Posted March 21, 2007 Yes I did this, and I found it but I don't know what part of the code or how much I should remove. I tried it but had no results so i thought someone that is used to codeing could help me out. Thanks for the suggestion though :) An easy way to find images like this is to right click the image and select "save as". A dialog box should pop-up asking you where you want to save it. By default, it will use the original images name. By doing that on the green arrow on your site, it comes up with the name "arrow_right.gif". Then you can search the code for that and you'll see where it is located. ... else { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>"; } ...
Guest Posted March 21, 2007 Posted March 21, 2007 From the looks of it, you should be able to do something like this: if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_down.gif', '', '9', '9') . "</span>"; } //else { //$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>"; } The code for the image is "tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9')", it's encased in the "span" tag with nothing else. This is equivalent to: <span class="catwithsubs"><img src="/catalog/images/categories/arrow_right.gif" alt="" width="9" height="9"></span> In plain HTML. Because there's nothing other than the image in that line, the whole line can be removed.
LisaC Posted March 21, 2007 Author Posted March 21, 2007 Thanks for the suggestion - I tried that but it did nothing - the images were still there. I also tried to remove them all but nothing . Thanks for trying though. From the looks of it, you should be able to do something like this: if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) { $categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_down.gif', '', '9', '9') . "</span>"; } //else { //$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>"; } The code for the image is "tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9')", it's encased in the "span" tag with nothing else. This is equivalent to: <span class="catwithsubs"><img src="/catalog/images/categories/arrow_right.gif" alt="" width="9" height="9"></span> In plain HTML. Because there's nothing other than the image in that line, the whole line can be removed.
acharme Posted March 22, 2007 Posted March 22, 2007 if you navigate to your images/categories folder, you will find your arrow_right file. You can edit that to look any way that you want, including a 1 x 1 transparent gif. Just name it the same, and upload it. learn...love...laugh...live
Guest Posted March 22, 2007 Posted March 22, 2007 Then you're not editing the right area. Maybe get an editor that can recursively search the contents of text files. Then you can do a search for that images and see where it's located other than the file you're editing. I recommend UltraEdit, but there are other good ones as well.
LisaC Posted March 22, 2007 Author Posted March 22, 2007 Thanks _ I thought of that but if I do that then it will still call up teh image and that space will be used by the new image. What I was after was to remove teh arrows so that the text would pull more to the left and then teh numbers would appear on teh same line but I now see that the numbers are set to appear beneath the text and I cant find where in the code to change that. Thanks for the help. Thanks for the suggestion - I tried that but it did nothing - the images were still there. I also tried to remove them all but nothing . Thanks for trying though.
knifeman Posted March 22, 2007 Posted March 22, 2007 Thanks _ I thought of that but if I do that then it will still call up teh image and that space will be used by the new image. What I was after was to remove teh arrows so that the text would pull more to the left and then teh numbers would appear on teh same line but I now see that the numbers are set to appear beneath the text and I cant find where in the code to change that.Thanks for the help. Lisa, Your categories look like mine do. Did you install the great categories contribution? I believe I have version 1.2. I have category counts turned off in admin. This is supposed to speed up the site. If you want to leave the counts on, then the code you need to change may be in the contribution files. Tim
LisaC Posted March 23, 2007 Author Posted March 23, 2007 You know what - to be honest I don't recall if I installed it or not lol. I have given up on it for now and maybe will find time to play with codes on the weekend or someone else will post a reply to another comment and it will "click". I will go turn off the category counts for now. Thanks so much :) Take care. Lisa, Your categories look like mine do. Did you install the great categories contribution? I believe I have version 1.2. I have category counts turned off in admin. This is supposed to speed up the site. If you want to leave the counts on, then the code you need to change may be in the contribution files. Tim
jonquil Posted March 23, 2007 Posted March 23, 2007 Lisa, do you still want to get rid of those "ugly" arrows? LOL :) jon It's all just ones and zeros....
LisaC Posted March 23, 2007 Author Posted March 23, 2007 Ahh i am not bothered any more lol Lisa, do you still want to get rid of those "ugly" arrows? LOL :) jon
LisaC Posted March 23, 2007 Author Posted March 23, 2007 The whole thing was that I wanted to get rid of the arrows and put the numbers on the same line as the text but i just decided to hide the number count so now it doesn't look as cluttered. I am ok with it the way it is. I am undcided if I likeb the arrows or not. I may turn the graphic into another small image - who knows LOL Thanks for the help though - I appreciate it here as well as on the other thread.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.