Slight Layout Issue

Open to all! Ask other shopowners for help.
Post Reply
User avatar
tessthepup
Certified Developer
Posts: 382
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Slight Layout Issue

Post 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?
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Slight Layout Issue

Post 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.
User avatar
tessthepup
Certified Developer
Posts: 382
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Slight Layout Issue

Post 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.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Slight Layout Issue

Post 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.
User avatar
tessthepup
Certified Developer
Posts: 382
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: Slight Layout Issue

Post 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.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Slight Layout Issue

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply