Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] No closing tag for <div> tag in right sidebar (http://forum.bytesforall.com/showthread.php?t=19683)

JimTrail Feb 20, 2013 08:51 PM

[SOLVED] No closing tag for <div> tag in right sidebar
 
Hello Bytes For All;

We're just now starting a new website. I installed the Atahualpa ver. 3.7.10 on the new website.

Here's the link:
http://www.spsforms.com/

Line 271 does not have a closing tag for a <div> tag. Here's the code snippet:

<div id="linkcat-99" class="widget widget_links"><div class="widget-title"></div>

I was wondering if somebody might suggest a fix.

Thanks.

juggledad Feb 21, 2013 03:23 AM

Congratulations, looks like you uncovered a WordPress bug!

What you are seeing is the default widgets that are generated when you haven't added a widget to the sidebar yourself. Once you add a widget, the ones there will go away. (this is one way you can fix this issue, just add a widget to the right sidebar)

Turns out that the 'Links' section of the admin screen has been removed in WP 3.5 for new installs (you learn something new every day!) and there are no default Links added in a new install and this is where the bug comes in.

There is a WordPress function (wp_list_bookmarks) that builds the list of links and there are two options 'title_before' and 'title_after' that can get passed to teh function. It seems that the function is ignoring the 'title_after' value if there is no title.

Anyway, simple to get arround, just add a widget in the sidebar and the 'linkcat' widget will be gone.


All times are GMT -6. The time now is 05:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.