0

If there is no post and sometimes, the sidebar widgets are looping out of the sidebar wrapper.

sidebar.php

<div class="sidebar-wrapper">
    <aside class="sidebar">
        <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar')) : endif; ?>
    </aside>
</div>

output: This kind of

Thanks so much.

  • How about .sidebar * {max-width:100%;}? – Abhik Dec 29 '16 at 17:01
  • Thanks for your comment but, the problem is not in style, sidebar widgets are looping out of the sidebar wrapper. – Rang Dec 29 '16 at 17:03
  • If not a CSS issue, you might want to post a raw html code of all your sidebar. – Abhik Dec 29 '16 at 17:07
  • Already I post the sidebar.php codes and output. – Rang Dec 29 '16 at 17:09
  • If content is overflowing the container, then this is an HTML/CSS issue so as @Abhik suggested, you should also post your HTML structure. – Jami Gibbs Dec 29 '16 at 17:31
0

The widgets that contain the loop in the sidebar are had caused the problem.

  • The problem is solved.
  • Please explain how you did solve your issue, It will helpful for future viewers of this post. Right now your are just telling us that you solved your problem. Also don't forget to accept your own answer after 2 days of posting. – Rishabh Dec 30 '16 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.