checkout and cart page width

Hi,

I'm using WooCommerce blocks for my cart and checkout pages as they are more user-friendly than my default Betheme cart and checkout. However, when I use Theme template in the Page settings both cart and checkout go full screen on desktop (they look ok on mobile). Is there a way I can add boxed layout to cart and checkout page only? (My global layout in Theme settings is full-width)


Comments

  • Hello,

    You can create a custom layout with a boxed style and choose it for both cart and checkout pages.

    Please, check the following video tutorial showing how to make such a layout.

    Thanks

  • Hi,

    I did try this solution, but it seems to work only on mobile (which looks better without it btw) not on desktop. Am I missing some settings option that should be enabled on desktop? or maybe it's a matter of adjusting site width when boxed layout is chosen for a particular page? But where can I do it without messing up the rest of the pages?

    Also, do you have any tips how I can make a Paypal logo smaller on the checkout page? it looks really gigantic now.


    thanks!

  • Yes, it is a matter of your site width adjustment.

    Instead of using layout, you can use write a custom CSS to narrow these pages. Also, you will need CSS to reduce the PayPal logo.

    Do you need help with writing it?


    Thanks

  • yes, please, your help with the code is greatly appreciated!

    I want content of the cart and checkout to be boxed but not the header which should be full size. If you could also make action bar disappear from the top of both pages it would be great.

  • Please, use the following codes:

    @media only screen and (min-width: 767px) {
       .woocommerce-checkout .the_content_wrapper,
     .woocommerce-cart .the_content_wrapper{
       margin: 0 20%!important;
     }
    }
    .woocommerce-page .wc-block-components-radio-control-accordion-option #radio-control-wc-payment-method-options-paypal__label img{
       max-width: 25%!important;
    }
    

    Thanks

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.