[BigCommerce] Make product image always centered on product details page
Add the code below in your Storefront > Footer Script:
<style> @media (min-width: 801px) {
.productView-imageCarousel-main-item > a {
position: relative;
display: block;
height: 0;
padding-top: 100%;
}
.productView-imageCarousel-main-item > a img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
} } </style>
This code works for these themes:
- Supermarket
- Sarahmarket
- Paralbag
- LaParis
- CARIL
Contact us if you need help or mod for other themes.
19th Jan 2018
Theme design & customization blog
-
PC Builder for BigCommerce – Build & Buy Custom Computers Online
At PapaThemes, we’re proud to introduce a game-changing feature in the Eyeva Theme for BigCommerce – …15th Aug 2025 -
The Ultimate Guide to Showcasing Products by Category for All BigCommerce Themes
In today's digital marketplace, the way you display your products can make a significant differen …23rd May 2023 -
Auto update quantity of products bought together according to the main product qty in Supermarket theme
Insert the code below to Storefront > Script Manager:Categories
Navigate
Documentation
Subscribe to our newsletter
Get notifications about our FREE themes and important announcements. We don't mail you if we have no great deals for you!
Did you know?
Free Trial for all our BigCommerce themes.
Request NowNeed help? Don't hesitate to ask us. We'll reply shortly.
All our BigCommerce themes are 100% compatible with the Standard, Pro, Enterpise edition. Built with Stencil / Cornerstone framework.