I’m struggling to get my WooCommerce shop page full size (or at least wider than default). I’ve tried all sorts of CSS codes from other posts, but they either also change my other pages, or don’t do anything at all.
I’m using Fascinate child theme, and WooCommerce width settings are not available in the customizer.
This is my shop page: https://www.blankamorikawa.art/shop/
Ideally, I’d like it as wide as my portfolio pages – i.e.: https://www.blankamorikawa.art/portfolio/2024-2/.
Any advice on how to achieve this?
2
Answers
Remove or increase the max width value
This is how it looks after the modification.
this is how it was before
If you want to be specific to the page, point to the class
This can be done using
CSS
. You have to inspect the elements within the page in order to target the right class/id.You do so by: Right click anywhere on a page -> Select inspect/inspect element -> Elements panel will open, showing the HTML and CSS of the page.
Checking you specific portfolio page, you can see that the element with class
body.no-sidebar .alignfull
containing your portfolio items has awidth
set to90vw
.Portofolio page
In your shop page check class
.fb-container
. This has amax-width
set tomax-width: 1170px;
. This limits your shop page to being maximum 1170px in width. So in order to have full width, you would have to set the max-width to e.g.100%
for class.fb-container
.Shop page
In order to only target the shop page, you can target the specific
<body>
classwoocommerce-shop
.So your CSS code could look like this: