• Hey all,

    As you’ve no doubt already guessed, I’ve got a delimma. I’m trying to turn the links in wordpress into a navbar, and it’s worked so far. However, I can’t figure out how to get rid of the title of the link category. So I’ve got a nice looking navbar, but above it and to the left is an annoying link titleâ€â€?doing absolutely nothing. I would tell the CSS to get rid of it, but I don’t know how.

    Here’s the code that I have:

    PHP:

    <div id=”links”>
    <?php get_links_list(); ?>
    </div>

    CSS:

    #links li {

    display: inline;

    list-style-type: none;

    }

    So I need some code to get the top level of the list so that I can call it in the CSS, and tell it to go away (i.e., ‘display: none’), but I don’t want it to not display the lower levels of the list.

    Am I making any sense, here?

    I could easily just make a custom list in the PHP, but I want the PHP get links function so that anyone can change/add another item to the navbar within the links menu in (which would be totally awesome).

    Any thoughts? All I want is just to get rid of the title of the list.

    Thanks,

    �Andrew

Viewing 2 replies - 1 through 2 (of 2 total)
  • there is a file in the wp-includes directory called links.php and I’m sure you could find the bit of code that calls the category titles

    –or–

    if you just want to remove the word “LINKS”

    you can go into your sidebar area and delete :

    <h2>Links:</h2>

    or

    <h2><?php _e('Links'); ?></h2>

    hope that helps you out

    Thread Starter Andrew

    (@andrew)

    Thanks!
    I found the file you mentioned, and found the line I needed to delete. I would never have guessed, except for a handy little comment some bright programmer put above it. Problem solved.

    Thank you very much!

    �Andrew

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS/PHP Conundrum’ is closed to new replies.