Page 1 of 1

Slight Layout Issue

Posted: Sat Mar 05, 2022 4:48 pm
by tessthepup
I have a slight issue with a coupe of viewport sizes.

The image below is from 768x1024 and as you can see it is a bit squished.

Does anyone know what to change to alter the breakpoint so that it is not all squished up?

Re: Slight Layout Issue

Posted: Sun Mar 06, 2022 6:19 am
by heatherbell
tessthepup wrote: Sat Mar 05, 2022 4:48 pm The image below is from 768x1024 and as you can see it is a bit squished.
Does anyone know what to change to alter the breakpoint so that it is not all squished up?
You are not clear what element you consider 'squished'.
Guessing you mean 'Featured Products' elements?
That is an addon so don't know where that is configured. It could be in the addon files or taken from https://phoenixcart.org/phoenixcartwiki ... ct_Listing Products Per Row
Your browser Dev Tools should allow you to play with changes and 768x1024 is around the sm to md breakpoint so play with that.

Re: Slight Layout Issue

Posted: Sun Mar 06, 2022 9:18 am
by tessthepup
heatherbell wrote: Sun Mar 06, 2022 6:19 am
tessthepup wrote: Sat Mar 05, 2022 4:48 pm The image below is from 768x1024 and as you can see it is a bit squished.
Does anyone know what to change to alter the breakpoint so that it is not all squished up?
You are not clear what element you consider 'squished'.
Guessing you mean 'Featured Products' elements?
That is an addon so don't know where that is configured. It could be in the addon files or taken from https://phoenixcart.org/phoenixcartwiki ... ct_Listing
Your browser Dev Tools should allow you to play with changes and 768x1024 is around the sm to md breakpoint so play with that.
Thank you for your reply.

Basically everything is 'squished' Featured Products, New Products, Related Products and Product Listing.

I need the layout to switch from 5 products across to a maximum of 3 or 4.

Re: Slight Layout Issue

Posted: Sun Mar 06, 2022 9:48 am
by heatherbell
tessthepup wrote: Sun Mar 06, 2022 9:18 am Basically everything is 'squished' Featured Products, New Products, Related Products and Product Listing.
So, I can still only guess, only you can see the code in the files you are using but you can confirm the breakpoint classes on the elements with your browser Dev Tools.

Re: Slight Layout Issue

Posted: Sun Mar 06, 2022 11:27 am
by tessthepup
heatherbell wrote: Sun Mar 06, 2022 9:48 am
tessthepup wrote: Sun Mar 06, 2022 9:18 am Basically everything is 'squished' Featured Products, New Products, Related Products and Product Listing.
So, I can still only guess, only you can see the code in the files you are using but you can confirm the breakpoint classes on the elements with your browser Dev Tools.
I have managed to sort my issues by changing each of the template files (in override of course) from

Code: Select all

<div class="col mb-2">
to

Code: Select all

<div class="col col-md-4 col-sm-4 mb-2">
and then adjusting the amount of products displayed to fill the gaps.

Re: Slight Layout Issue

Posted: Sun Mar 06, 2022 12:33 pm
by ecartz
Note for others who may be reading this: the recommended process is to change the product listing layout as described at https://phoenixcart.org/phoenixcartwiki ... ct_Listing under "Products Per Row".

Doing things that way avoids having to override the template files and changes all of them at once.