msaunders Posted November 7, 2002 Posted November 7, 2002 Hi I want to add an image (a bullet) before each category name . Where do I need to edit the code to do this ? Is it in the category.php file ? Has anyone done this yet ? Thanks martin
Trusten Posted November 7, 2002 Posted November 7, 2002 probably in the category.php that's where those -> are, so i'd assume that's where you'd go. give it a go. those bullets are sometimes refered to as <li>
msaunders Posted November 7, 2002 Author Posted November 7, 2002 Ah, well, thats where im looking. What symbol are the -> represented by ? I wanted to remove those also
Trusten Posted November 7, 2002 Posted November 7, 2002 if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } -> -> that's what it is. just take that out and make it look like this if (tep_has_category_subcategories($counter)) { $categories_string .= ''; } that's what i did. go here, http://www.animeglore.com/test2/ you'll see they are off. also, you'll see that if you click on a catagory, the selected catagory turns black and gets big. fiddle around a bit
msaunders Posted November 7, 2002 Author Posted November 7, 2002 Aarrrgh! I have done something to mess it up. Now, when I view my sub-categories, they jump to the bottom of the page... I cant figure out what I have done
Trusten Posted November 7, 2002 Posted November 7, 2002 lol. well did you back up the file? just re-upload it, or restore it back to the old one, and try again. MAKE SURE TO BACK UP.
msaunders Posted November 7, 2002 Author Posted November 7, 2002 Yeah, i got it back Still cant get that little image before the category tho.... ta martin
Jonas Posted November 8, 2002 Posted November 8, 2002 Hi guys Try this: includes/categories.php -> Line 20 $categories_string .= '<img src="' . DIR_WS_IMAGES . 'image.gif"><a href="'; Change image.gif to your image name. Image must be on images folder. .:: Jonas ::.
msaunders Posted November 8, 2002 Author Posted November 8, 2002 Hi there That only adds them to the SUB CATEGORIES, not the main categories. I only want the image on the MAIN , not the SUB Thanks martin
Jonas Posted November 8, 2002 Posted November 8, 2002 The image will apear on Categories AND Sub Categories (the same image) .:: Jonas ::.
msaunders Posted November 8, 2002 Author Posted November 8, 2002 Hi Ok, fair enough, but i dont want it to do that, i only want it to appear in front of the main categories. martin
Recommended Posts
Archived
This topic is now archived and is closed to further replies.