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.

10
  • How about .sidebar * {max-width:100%;}?
    – Abhik
    Commented Dec 29, 2016 at 17:01
  • Thanks for your comment but, the problem is not in style, sidebar widgets are looping out of the sidebar wrapper.
    – Rang
    Commented Dec 29, 2016 at 17:03
  • If not a CSS issue, you might want to post a raw html code of all your sidebar.
    – Abhik
    Commented Dec 29, 2016 at 17:07
  • Already I post the sidebar.php codes and output.
    – Rang
    Commented Dec 29, 2016 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
    Commented Dec 29, 2016 at 17:31

1 Answer 1

0

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

  • The problem is solved.
1
  • 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
    Commented Dec 30, 2016 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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