Anonymous
<img src="images/menu-links.gif" alt="Link"/> <li id="links">Links
Is it the id name that you need to delete?
Look for this code in your index.php file:
- <h2><?php _e('Links'); ?></h2>
<?php get_links('-1', '
- ', '
', '
'); ?>
If you want to remove the name, just delete “Links” in the first line. If you want to remove the whole thing (name and links), then just delete the entire code.
Thread Starter
JeffM
(@jeffm)
Thats the issue, I don’t have that in my index.php. I replaced all of the others, as you can see, but I can’t locate anything like that in the whole site.
It has to be in the index.php, otherwise the links wouldn’t display like that. Are you saying that you replaced the index.php file? What did you replace it with?
Thread Starter
JeffM
(@jeffm)
This is how it is called..
‘<?php _e(‘<img src=”images/menu-links.gif” alt=”Link”/>’); ?><?php get_links_list(); ?>
<li id=”categories”><?php _e(‘<img src=”images/menu-cat.gif” alt=”Category”/>’); ?>’
Just remove the <?php _e('<img src="images/menu-links.gif" alt="Link"/>'); ?><?php get_links_list(); ?> part.
Thread Starter
JeffM
(@jeffm)
I added that on purposes. When I opened up index.php for the first time was:
‘ul>
<?php get_links_list(); ?>
<li id=”categories”><?php _e(‘Categories:’); ?>
‘
Thread Starter
JeffM
(@jeffm)
So if i don’t want that header, “links” to be there, I have to hard code my own links?
Thread Starter
JeffM
(@jeffm)
I’ve found it!
For the future seraches. Change line 563 on links.php from this:
// Display the category name echo ' <li id="'.sanitize_title($cat['cat_name']).'">' . stripslashes($cat['cat_name']) . "\n\t
To this:
// Display the category name echo ' <!--<li id="'.sanitize_title($cat['cat_name']).'">-->' . stripslashes($cat['cat_name']) . "\n\t
I tried using the last bit of code and it made no difference in my page. Would a newer version of WP cause this?