• I’ve searched the forums high and low, maybe I don’t know what its called, but I am trying to rid my menu of the “links” heading, or title. I tried deleting the name in Link manager, but it still leaves a space. Any ideas?
    https://jefferymichael.com/g/index.php <- you’ll notice it.
    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
    • <img src="images/menu-links.gif" alt="Link"/> <li id="links">Links

    Is it the id name that you need to delete?

    Moderator James Huff

    (@macmanx)

    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.

    Moderator James Huff

    (@macmanx)

    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”/>’); ?>’

    Moderator James Huff

    (@macmanx)

    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:’); ?>

      <?php wp_list_cats(); ?>

    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

      \n";'


    To this:
    // Display the category name echo ' <!--<li id="'.sanitize_title($cat['cat_name']).'">-->' . stripslashes($cat['cat_name']) . "\n\t

      \n";'

    Moderator James Huff

    (@macmanx)

    Good one, Beel. ^_-

    I tried using the last bit of code and it made no difference in my page. Would a newer version of WP cause this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Delete the title “links” from Menu?’ is closed to new replies.