Title: Custom widgets affecting page width
Last modified: May 26, 2023

---

# Custom widgets affecting page width

 *  Resolved [napleswebguy](https://wordpress.org/support/users/napleswebguy/)
 * (@napleswebguy)
 * [3 years ago](https://wordpress.org/support/topic/custom-widgets-affecting-page-width/)
 * Hello, when I make a widget (from codepen) its affecting my page width. When 
   I deactivate the widget the page widths go back to normal. Is there some setting
   I am missing that lets the width not effect the whole site?
 * I have tried several themes, defiantly the widget taking over the page width.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Ahmed Amir Hossain](https://wordpress.org/support/users/ahmedamir/)
 * (@ahmedamir)
 * [3 years ago](https://wordpress.org/support/topic/custom-widgets-affecting-page-width/#post-16778192)
 * Hi [@napleswebguy](https://wordpress.org/support/users/napleswebguy/),
 * Thanks for reaching out to us.
 * You can build any type of widget if you use proper logic inside the PHP block
   on the HTML section. Also, put the CSS and JS in the respective section. If something
   is wrong with your code then your whole website can be affected. So if the code
   affects the main page width then inspect the issue carefully. Hopefully, you 
   will be able to find out what wrong you have done.
 * Could you please send us the code and also share a video of how you have implemented
   the code and reproduced the issue at your end? We will check the issue and let
   you know the update as soon as possible.
 * Looking forward to your response.
 * Regards,
 * Amir
 *  Plugin Support [Moin Munna](https://wordpress.org/support/users/moinmunna/)
 * (@moinmunna)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/custom-widgets-affecting-page-width/#post-16890442)
 * Hello [@napleswebguy](https://wordpress.org/support/users/napleswebguy/),
   I hope
   you’re doing fine.
 * We haven’t received any update from you till the last response and assuming that
   the issue is resolved now. For that reason, I’m marking this thread as resolved.
   If you need further assistance, never hesitate to create a new thread. We are
   always here to assist you.
 * Best Regards,
   Moin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom widgets affecting page width’ is closed to new replies.

 * ![](https://ps.w.org/elementskit-lite/assets/icon-256x256.gif?rev=2518175)
 * [ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor](https://wordpress.org/plugins/elementskit-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementskit-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementskit-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/elementskit-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementskit-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementskit-lite/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Moin Munna](https://wordpress.org/support/users/moinmunna/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/custom-widgets-affecting-page-width/#post-16890442)
 * Status: resolved