WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar problem (2 posts)

  1. Linuzzzz
    Member
    Posted 8 years ago #

    Hello.

    I have a little problem with my sidebar, nothing big but I hope you can help me.

    Look at my sidebar at: http://linuzzzz.gnrsweden.com/

    What's "Blogroll"? I can't change the name and I can't find it in the Blogroll-file. However, I tried to remove this code from sidebar.php:

    <?php
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    ?>
    <li id="linkcat-<?php echo $link_cat->cat_id; ?>"><h4><?php echo $link_cat->cat_name; ?></h4>

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

    <?php } ?>

    I removed it and uploaded it and that "Blogroll" was gone. But the code looked so complicated so I thought that it was an important code. Do you know if it's okey to remove it?

    One more thing. I want to translate "About" under "Sidor:" But it's not in sidebar.php. Here's the code there:

    <?php wp_list_pages('sort_column=menu_order&title_li=<h4>' . __('Sidor:') . '</h4>' ); ?>

    How can I translate "About"?

    Hope you can help me, I would appreciate it!

    EDIT: Oh, and I'm using the theme: Daisyraegemini

  2. bran8464
    Member
    Posted 8 years ago #

    I don't know how important the code that you deleted is but if I were you I would restore the file as it was because there is an easy way to change the name of blogroll. Go to 'links' on your dashboard and then to link categories. You can then change the name to anything you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags