Hello,
How do I remove "Testimonial" from the category area on the left?
Hello,
How do I remove "Testimonial" from the category area on the left?
Hi,
Edit sidebar.php and alter the line...
<?php wp_list_categories('title_li=&show_empty=0&depth=1'); ?>
to...
<?php wp_list_categories('title_li=&show_empty=0&depth=1&exclude=x'); ?>
... where x is the numeric ID of the testimonial category.
To find the category ID, login to the WordPress admin panel and hover your cursor over the category that you're looking to hide. The link showing in the bottom of your browser window should end in cat_ID=x. That's the category ID.
Hope that helps,
Matt
Thanks Matt, I opened sidebar.php in notepad and DW and could not find that line of code. Your directions are easy enough, but I just can't find the code. Sidebar.php was inside of wp-admin folder. Thanks again for the help. Is there another file named sidebar.php?
Hi,
sidebar.php is in the wp-content/themes/fotofolio-landscape folder.
Matt
Great I found it, and it worked, but it appears that it only gets rid of "Testimonials" from the Testimonials page only. But the other pages still have it there.
Hi,
So just to confirm then, in themes/fotofolio-landscape/sidebar.php the relevant line reads:
<?php wp_list_categories('title_li=&show_empty=0&depth=1&exclude=11'); ?>
I did something similar for my site and it worked as I'd hoped.
Matt
Ok it seems a little odd. It works, but not completely. I have 4 categories, but Testimonials only shows up on two of them, and it's gone from my other pages and categories. So it's working, but not on all pages. I'll go back and recreate the wheel to make sure I did everything right.
Yep, no luck. I verified and re-verified, checked and rechecked, it works, but not on two of my categories. There has to be something I'm missing, is there another way? I can't find anything in the forums.
Narrowed it down, not sure what to do next. Appears it only happens in Windows 7 Firefox. Checked IE, looks good. Checked browsers on my Mac, looks good. o__o.
You must log in to post.