Magic Action Box
[resolved] widgets on sidebar gets pushed down when (5 posts)

  1. elephunk21
    Posted 2 years ago #

    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.


  2. Ryann Micua
    Plugin Author

    Posted 2 years ago #

    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.

  3. elephunk21
    Posted 2 years ago #

    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?

  4. Ryann Micua
    Plugin Author

    Posted 2 years ago #

    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 http://wordpress.stackexchange.com/questions/74732/adding-a-div-to-wrap-widget-content-after-the-widget-title?rq=1

  5. elephunk21
    Posted 2 years ago #

    thanks loads Ryan. You are a saviour!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Magic Action Box
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic