Title: Footer link widget problem
Last modified: August 20, 2016

---

# Footer link widget problem

 *  [jamkaret](https://wordpress.org/support/users/jamkaret/)
 * (@jamkaret)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/footer-link-widget-problem/)
 * I am trying to display the link widget inside my footer. So far all other footer
   widgets work fine except for this one.
 * My goal is to display the simple blogroll list but have it placed within a div
   called footer-links.
 * I have no clue why the following code isn’t working inside my functions.php file:
 *     ```
       if ( function_exists('register_sidebar') )
       	register_sidebar(
       		array(
       			'name'				=> 'Footer -links',
       			'before_widget'		=>	'<div id="footer-links">',
       			'after_widget'		=>	'</div>',
       			'before_title'		=>	'<h4>',
       			'after_title'		=>	'</h4>',
       		)
       );
       ```
   
 * On the other hand, when i change `<div id="footer-links">` to `<div class="footer-
   links">` it does work..
 *     ```
       if ( function_exists('register_sidebar') )
       	register_sidebar(
       		array(
       			'name'				=>	'Footer-links',
       			'before_widget'		=>	'<div class="footer-links">',
       			'after_widget'		=>	'</div>',
       			'before_title'		=>	'<h4>',
       			'after_title'		=>	'</h4>',
       		)
       );
       ```
   
 * I would really like to know why and what’s causing this problem.
 * On a side note: i did notice that the widget added `<div id="linkcat-23">` above
   my link list instead of the ID i specified.

The topic ‘Footer link widget problem’ is closed to new replies.

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [footer widget](https://wordpress.org/support/topic-tag/footer-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jamkaret](https://wordpress.org/support/users/jamkaret/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/footer-link-widget-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
