Support » Plugin: Magic Action Box » widgets on sidebar gets pushed down when

  • Resolved elephunk21


    Hi there,

    Firstly thanks for the plugin. Excellent plugin.
    I have installed one on the main content which works fab but
    Having some issues with the sidebar widget.

    When I place the magic action box widget on the top of my sidebar, all my other widgets gets pushed down. If i place the magic box widgets below my other widgets, then the sidebar works fine.

    You can see a demo of how all the other widgets are pushed down here:

    I am not sure where the problem lies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ryann Micua


    Hi, can you send the contents of the Opt In Form Code field and the Processed Opt In Form Code fields?

    Running the page through w3c validator shows a stray <div> tag.

    Hi i had used AWeber Authorization Code. AzLAFLgbGXnx6CD2tR3jX7DZ|5o9ObJFif4uLeAcNj1iBmAtWFnw16G0UMkiXDXRM|AqHG76M7ubKhLUJOxd0ZTlxB|cibQf2Sx9uQoSTQMmirnMD9FrdMjWUbgndgsXp31|qcrp9v|

    sorry i hope the above what was you had requested above. If not, please advise where do i can find these access code fields?

    Plugin Author Ryann Micua


    I took a look at the theme’s template file and found this file inside the theme functions/widgetize-theme.php which is responsible for outputting the widget html:

    $before_widget =  '<div id="%1$s" class="widget %2$s">';
    $after_widget  =  '</div></div><!-- .widget /-->';
    $before_title  =  '<div class="widget-top"><h4>';
    $after_title   =  '</h4><div class="stripe-line"></div></div>
                      <div class="widget-container">';

    It may not look much but there’s one major caveat to the code above. It fails if the widget doesn’t have a title. since you are not using the widget title, the output of the widget will now look like this:

    $before_widget =  '<div id="%1$s" class="widget %2$s">';
    $after_widget  =  '</div></div><!-- .widget /-->';

    in the $after_widget variable, you’ll see the two </div></div> tags whereas the $before_widget only has one. that’s where the stray tag is coming from.

    My only solution for you would be to add a title to the MAB widget. Or talk it out with the theme author and point him here

    thanks loads Ryan. You are a saviour!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘widgets on sidebar gets pushed down when’ is closed to new replies.