• 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.