WordPress.org

Ready to get started?Download WordPress

Forums

De-nesting Link Categories. (8 posts)

  1. wyafer
    Member
    Posted 7 years ago #

    Currently under my Blogroll, there are 2 categories.

    These are "Personal" and "E-zines"

    They are both nested under "Links".

    My site can be accessed at http://www.wyafer.org

    I wish to get rid of the 'link' parent category all together while still mantaining the other categories.

    The code in my index.php file in WP looks like this:

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

      <?php wp_list_bookmarks('-1', '
    • ', '
    • ', ' '); ?>
    '

  2. MichaelH
    Member
    Posted 7 years ago #

    Are you saying you just want to get rid of the title Links?

    If so just delete:

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

  3. pramodd
    Member
    Posted 7 years ago #

    I would also suggest that you make your navigation on the sidebar consistent - some items have a bullet ... some do not.

  4. wyafer
    Member
    Posted 7 years ago #

    Sorry. I've been fiddling with it.

    The chunck of relevant code is this

    <h2><?php _e('About the Site:'); ?></h2>
    
    <ul><li><?php bloginfo('description'); ?></li></ul>
    <h2><?php _e('Links'); ?></h2>
    <ul><?php wp_list_bookmarks('-1', '<li>', '</li>', ' '); ?></ul>

    So the e-zine and personal categories get lumped under "about the site" where before they were lumped under 'Links".

    I want them as completely seperate categories, while still being able to use the blogroll function in WP.

  5. wyafer
    Member
    Posted 7 years ago #

    This is the code I'm having problems with.

    <div id="sidebar">

    <h2><?php _e('About the Site:'); ?></h2>
    <ul><li><?php bloginfo('description'); ?></li></ul>
    <h2><?php _e('Links'); ?></h2>
    <ul><?php wp_list_bookmarks('-1', '<li>', '</li>', ' '); ?></ul>

    <?php get_sidebar(); ?>

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    Currently, it nests the sub-categories of the blogroll into one huge 'Link' category.

    Also, there's that bullet beside the 'pages' category I don't know how to get rid off.

    Please help!
    Thanks in advance...

  6. pramodd
    Member
    Posted 7 years ago #

    You have added E-Zines and Personal sections inside Links. Move them out of the Links section.

  7. wyafer
    Member
    Posted 7 years ago #

    I'm sorry, but how?

    It would be helpful if you could give me the code to copy and paste. I'm really confused.

  8. wyafer
    Member
    Posted 7 years ago #

    Ok. I got it.

    Now it's this.

    <div id="sidebar">

    <h2><?php _e('About the Site:'); ?></h2>
    <ul><li><?php bloginfo('description'); ?></li></ul>
    <h2><?php _e('Links'); ?></h2>
    <?php wp_list_bookmarks('-1', '<li>', '</li>', ' '); ?>

    <?php get_sidebar(); ?>

    But there are the awful bullets I want to get rid off.

    Also, how do I completele remove the 'Links' category (which has nothing in it effectively) with out lumping the blogroll into the 'About' category above.

Topic Closed

This topic has been closed to new replies.

About this Topic