Title: adding code for sidebar edit
Last modified: August 19, 2016

---

# adding code for sidebar edit

 *  [onajide](https://wordpress.org/support/users/onajide/)
 * (@onajide)
 * [18 years ago](https://wordpress.org/support/topic/adding-code-for-sidebar-edit/)
 * [http://www.miamiartexchange.com/maex_artblog/](http://www.miamiartexchange.com/maex_artblog/)
   
   I changed my theme to the one shown which does not have a blogroll in its default
   ver. Changing to sidebar widgets with drag-and-drop breaks it so, I want to keep
   the default. Howevever, I want to add the blogroll (and call it links) above 
   the META in the right-hand column. I’ve been searching for hours trying to figure
   out what the “if statement” should be on the function.php page. The more I read,
   the more confused I get.
 * I assume this is correct for sidebar.php:
    <li id=”Blogroll”> <h2>Links</h2>
    -  <?php get_links(-1, ‘
    - ‘, ‘
    - ‘, ‘ – ‘); ?>
 *  <?php endif; ?>
 * What goes on function.php (and where) this?
 * <?php if (is_page() || $contlen >) { ?>
    <h2>Blogroll</h2>
    -  <?php wp_list_bookmarks(); ?>
 * <?php } ?>:
 * Thank you in advance for any assistance!

The topic ‘adding code for sidebar edit’ is closed to new replies.

## Tags

 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [sidebar.php](https://wordpress.org/support/topic-tag/sidebar-php/)

 * 0 replies
 * 1 participant
 * Last reply from: [onajide](https://wordpress.org/support/users/onajide/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/adding-code-for-sidebar-edit/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
