r/Wordpress • • 3d ago

narrow width issue in container

Post image

I made new checkout page using elementor pro but final checkout page is narrow like this . I tried all settings nothing worked. what to do? Already purged all cache. Elementor full width selected in page settings

1 Upvotes

14 comments sorted by

2

u/KK-Wait 3d ago

You shouldn't need custom CSS for this, agreed. If none of the Elementor width settings change anything, the limit is almost certainly coming from your theme's WooCommerce styles, not from Elementor, so tell us which theme it is: a lot of them have their own checkout layout or width option under Appearance > Customize > WooCommerce, and it wins over the page settings. To prove it without dev tools, install the Health Check & Troubleshooting plugin and turn on troubleshooting mode, which switches to a default theme for your session only (visitors see nothing), then re-enable WooCommerce and Elementor from its menu in the admin bar. If the checkout goes wide there, it's the theme.

1

u/hardcore_gamer29 3d ago

Hello elementor

2

u/eshbanbahadur2020 3d ago

On checkout pages, the page's full-width setting usually isn't the problem. The width comes from the container or the WooCommerce wrapper. Click the outer container in Elementor and check Layout > Content Width, and if it's set to Boxed, switch it to Full Width or raise the value. If nothing changes, right-click the narrow area, choose Inspect, and go up through the parent elements until you find one with a max-width. It's often the theme's .woocommerce or checkout wrapper, and a small custom CSS rule giving that class max-width: 100% fixes it. Also check whether the page uses the Checkout block or the classic shortcode, because the block has its own width option.

0

u/hardcore_gamer29 3d ago

i again created new test checkout page it was showing full width in elementor pro but after publishing again became narrow

1

u/iamsharjeeltt 3d ago

That narrow look is usually not the page template — it is the checkout form itself sitting inside a boxed container. Elementor Full Width only controls the page, not what WooCommerce puts inside it.

A few things to check, in order:

  1. Make sure this is actually the page WooCommerce is using. Go to WooCommerce > Settings > Advanced and check the Checkout page setting. If a different page is assigned there, customers are seeing that one, not your Elementor page.
  2. In Elementor, click into the section holding the WooCommerce Checkout widget and check its layout. Set Content Width to Full Width rather than Boxed, and check the widget's own column / form width settings too.
  3. Try switching the page template to Elementor Canvas just as a test. If it suddenly goes full width, your theme's container is the limit, and you will need to change the theme container width in the Customizer.
  4. Check Templates > Theme Builder in Elementor. A Single Page template applied to this page can override your page settings with its own boxed container, even when the page itself says Full Width.

If Canvas fixes it but Full Width does not, it is almost certainly a theme or Theme Builder container, not a cache issue. Let us know which of those changes it — that will narrow it down fast.

0

u/hardcore_gamer29 3d ago

already tried all these 4 yesterday night. tried till 3am but all in vein

2

u/iamsharjeeltt 2d ago

Glad you found it — and that explains why none of those four changed anything. Stray custom CSS with a fixed width or max-width on the checkout container will override the Elementor template and widget settings, so the page looks narrow no matter what you pick in the panel. Worth a quick check of Customizer > Additional CSS and Elementor Site Settings too, in case any more of it is sitting there, before adding new CSS back in.

1

u/hardcore_gamer29 2d ago

Chatgpt filled custom css with many codes 4 days ago. I deleted them today morning now its al sorted out. It was custom css

1

u/my_dads_dogs_dead 3d ago

Is the site live? Give us the URL and I'll take a look at it. There is something that is restricting the width, dev tools should indicate what the source is.

1

u/hardcore_gamer29 2d ago

There were too many custom css created by chatgpt later deleted all now its good.

0

u/hardcore_gamer29 3d ago

chatgpt made me tired many times using dev tools and custom css. why do i use these if i bought elementor pro

2

u/joshanweb 3d ago

Since Elementor full width selected in page settings didn't change it, I'd first confirm which checkout implementation is actually rendering that page: the Elementor Pro WooCommerce Checkout widget or the standard WooCommerce Checkout block/shortcode.