WordPress.org

Ready to get started?Download WordPress

Forums

I've got an extra "Links" on my sidebar (8 posts)

  1. jclick
    Member
    Posted 8 years ago #

    I've got the word "Links" twice on my sidebar. http://www.4clicksgps.com/wordpress/ . Is there a way of fixing this?

  2. moshmonkey
    Member
    Posted 8 years ago #

    yea, it's pretty easy, just go into your sidebar.php template file inside your themes folder and you should see the extra links text in there somewhere

  3. sadish
    Member
    Posted 8 years ago #

    one of the 'links' is hardcoded. it must be in sidebar.php or index.php.

    the other one, is the name of your 'links category', normally it would be called Blogroll, but you changed it to 'Links' I think.

    you can remove the hardcoded one if you do not want it.

    Thanks
    Sadish

  4. jclick
    Member
    Posted 8 years ago #

    Below is what it looks like. I tried removing the <h3>Links</h3> and it took my links totally off of the page all together.

    <!-- start links -->
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

    <?php
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    ?>
    <h3>Links</h3>

      <?php wp_get_links($link_cat->cat_id); ?>

    <?php } ?>

    <!-- end links -->

  5. spencerp
    Member
    Posted 8 years ago #

    *EDIT* Hmmm..it appears the link section your talking about is or almost has to be hardcoded in there...mmmmmm.. I'm not really sure then..

    http://ckunte.com/archives/2005/03/07/plain-vanilla-1/#comment-1296
    http://ckunte.com/archives/2005/03/07/plain-vanilla-1/#comment-1363

    spencerp

    I'm going to download this once and mess with it lol!!

  6. jclick
    Member
    Posted 8 years ago #

    spencerp

    I just tried what you suggested. It removed everything in the side bar. It's really no big deal I guess the extra "link" being there... it just bugs me!

  7. jclick
    Member
    Posted 8 years ago #

    I found out where the extra "links" came from. It seems that for every link category I have setup, wordpress puts a different "link" column on the sidebar. I had 2 categories set up. I deleted the other category and boom, the extra "link" disappeared! Sadish's above response got me pointing in that direction.

  8. spencerp
    Member
    Posted 8 years ago #

    jclick sorry about that, I was hoping to edit my reply fast enough so you wouldn't have seen that. =( But I guess I wasn't fast enough for you lol.

    I went searching for ppl's comments on it at the site for the theme download and then posted links to them comments. I did download that theme earlier, just didn't get to upload it yet and mess around with it.. Plan on doing that here soon.

    After reading what the theme maker said about it, I think I have an idea what he was doing.. But sometimes it's hard to understand why "theme makers" do the stuff they do lol.

    You'd almost expect it to be made atleast some what "easy" especially for all those ppl out there "without" that experience in certain "fields" of coding... :/ Guess not sometimes... =( Anyway, I hope ya get this straightened out soon...and I'll upload it here soon myself and tinker with it lol..

    spencerp

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags