Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter craven222

    (@craven222)

    I’ve fixed the majority of them, the problem still occurs. The only ones left are ones that wouldn’t affect the footer (missing alt tags, etc). There’s only one that could possible affect it is

    Line 376, Column 14: end tag for element "div" which is not open
            </div>

    But when I go into the source this is what’s on Line 376

    <!– Error, Ad (ID: 8) is not available at this time due to schedule restrictions or does not exist! –>

    double check the content of that text widget, there might be a </div> at the end (?)

    also, temporarily remove the textwidget from the sidebar on the front page; does that solve the problem?

    Thread Starter craven222

    (@craven222)

    Yeh it fixes it if I remove the ENTIRE widget, if I just delete all the code out of it, the problem is still there.

    I tried copying the code, deleting the widget, and then pasting it into a new text widget – same issue.

    Here’s the content

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="250" height="100">
          <param name="movie" value="ads/worldone.swf" />
          <param name="quality" value="high" />
    
    <embed src="ads/worldone.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="250" height="100"></embed>
        </object>
    [adrotate banner="30"]
    [adrotate banner="28"]
    [adrotate banner="27"]
    [adrotate banner="26"]
    [adrotate banner="25"]
    [adrotate banner="24"]
    [adrotate banner="23"]
    [adrotate banner="22"]
    [adrotate banner="20"]
    [adrotate banner="19"]
    [adrotate banner="18"]
    [adrotate banner="17"]
    [adrotate banner="16"]
    [adrotate banner="15"]
    [adrotate banner="14"]
    [adrotate banner="6"]
    [adrotate banner="13"]
    [adrotate banner="11"]
    [adrotate banner="1"]
    [adrotate banner="3"]
    [adrotate banner="2"]
    [adrotate banner="4"]
    [adrotate banner="5"]
    [adrotate banner="7"]
    [adrotate banner="8"]
    [adrotate banner="9"]

    imho, the theme is broken; i just downloaded it and it has similar validation errors.

    seems to come from the way the sidebar is registered (in functions.php):

    register_sidebar(array(
            'name'=>'Sidebar',
            'before_widget' => '<div id="%1$s" class="%2$s widget">',
            'after_widget' => '</div></div>',
            'before_title' => '<h3>',
            'after_title' => '</h3><div class="widget-body clear">'
        ));

    this breaks the html structure if any of the widgets does not have a title.

    please contact the theme’s developer with a request to fix this problem.

    Thread Starter craven222

    (@craven222)

    Thanks for the response alchymyth. I took the easy way out – and just added a title to the widget – problem solved!

    The theme is free and the support forums are dead so I don’t think there was much chance of the developer fixing it.

    PS to the previous reply:
    you could try for now:

    register_sidebar(array(
            'name'=>'Sidebar',
            'before_widget' => '<div id="%1$s" class="%2$s widget">',
            'after_widget' => '</div><div class="widget-body clear"></div>',
            'before_title' => '<h3>',
            'after_title' => '</h3>'
        ));

    and while you at it:
    there is also something wrong with the css class for the comments popup link;
    in functions.php:

    function comments_link_attributes(){
        return 'class="comments_popup_link"';
    }
    add_filter('comments_popup_link_attributes', 'comments_link_attributes');

    the one line needs to be:

    return ' class="comments_popup_link"';

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sidebar widget causing footer corruption’ is closed to new replies.