Phoca Cart template - Category list on mobile
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart template - Category list on mobile
Hi, then this seems to be some CSS conflict with another part on your site.
I am testing now:
- Phoca Cart template (the one you are using - version 1.0.4)
- with different size of boxes (one box has longer name of category - the same like on your site)
and everything is OK with the boxes, see image:
So really hard to say what can cause the conflict
Do you use some cache or similar feature, which can somehow display not updated site when chaning the equal height parameter, etc.
Jan
I am testing now:
- Phoca Cart template (the one you are using - version 1.0.4)
- with different size of boxes (one box has longer name of category - the same like on your site)
and everything is OK with the boxes, see image:
So really hard to say what can cause the conflict
Do you use some cache or similar feature, which can somehow display not updated site when chaning the equal height parameter, etc.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Hero
- Posts: 2818
- Joined: 28 Nov 2010, 17:20
Re: Phoca Cart template - Category list on mobile
Hi,
Don't know why it does not help with: "equal heights" parameter. Just an idea
When checking for example:
1) <a href="/13-carrelli-elevatori">CARRELLI ELEVATORI</a> with:
2) <a href="/7-elettrodomestici">ELETTRODOMESTICI</a>
Difference between 1) and 2):
1) there is a dash in alias and the space in description.
2) Hv changed temporarily & it looks OK:
Kind regards
Christine
Don't know why it does not help with: "equal heights" parameter. Just an idea
When checking for example:
1) <a href="/13-carrelli-elevatori">CARRELLI ELEVATORI</a> with:
2) <a href="/7-elettrodomestici">ELETTRODOMESTICI</a>
Difference between 1) and 2):
1) there is a dash in alias and the space in description.
2) Hv changed temporarily & it looks OK:
Kind regards
Christine
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Phoca Cart template - Category list on mobile
Thank You Christine but in Italian language "Carrelli Elevatori" are 2 words and "Elettrodomestici" only one
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Phoca Cart template - Category list on mobile
This is the situation on my smartphone in portrait mode
and this is how I see the same page on the same smartphone in landscape mode
and this is how I see the same page on the same smartphone in landscape mode
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart template - Category list on mobile
Hi, as I wrote, there is some conflict which just prevents the flexbox to make all the boxes same height, but really hard to say in which part of the website. I am testing the same with the same template and get no such problems
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Phoca Cart template - Category list on mobile
In the meantime, thanks for everything, I tried to delete all the components, modules, plugins and templates that I had installed but then not used but nothing has changed; if I create your credentials to enter the site it may be helpful to understand where is the problem?
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Cart template - Category list on mobile
Hi, I think, I found the problem.
This code in main.css
needs to be changed, it is ready for one column but in your case, if you edited to two columns, you need to use: display: flex instead of display: block for this screen width.
Just add this code to your css (e.g. to custom.css):
Jan
This code in main.css
Code: Select all
@media screen and (max-width: 576px)
.ph-row-flex.grid {
display: block;
}
Just add this code to your css (e.g. to custom.css):
Code: Select all
@media screen and (max-width: 576px)
.ph-row-flex.grid {
display: flex;
}
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Phoca Cart template - Category list on mobile
these are the moments when i realize my huge ignorance, i can't find the main.css file
- Benno
- Phoca Hero
- Posts: 9435
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Phoca Cart template - Category list on mobile
Hi,
You will find the code Jan mentioned on line 1783
But as Jan has already written, don't change there anything, because it would be overwritten with every update of Phoca Cart. It is much better to create a custom.css for your template and copy the code into it.
See images:
This file will not be overwritten by a Joomla! update, a Phoca Cart update or a Phoca Cart Template update.
Kind regards,
Benno
/media/com_phocacart/css/main.cssi can't find the main.css file
You will find the code Jan mentioned on line 1783
But as Jan has already written, don't change there anything, because it would be overwritten with every update of Phoca Cart. It is much better to create a custom.css for your template and copy the code into it.
See images:
This file will not be overwritten by a Joomla! update, a Phoca Cart update or a Phoca Cart Template update.
Kind regards,
Benno
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Phoca Cart template - Category list on mobile
Thank you Benno, I try but i don't see any pictures