incorrect display on smartphones

  • Posts: 35
  • Thank you received: 0
8 years 2 months ago #265395

-- url of the page with the problem -- : www.rtmetalli.it
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.5.1

hi, I set three columns for displaying products list, on descktop the result is ok. When you step to the display on smartphones articles moving in this 2-1-2-1-2-1 sequence and so on. I wish the display was 2-2-2-2-2. I set this class in the css:

@media only screen and (max-width: 970px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 50% !important;}
}
@media only screen and (max-width: 750px) {
.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product
{width: 100% !important;}
}

how do I fix?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #265404

Hi,

You also need to add some CSS for the clear:both DIV which separates each row in that case with such CSS in your media queries:
.hikashop_products_listing div{ clear: none !important; }

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
8 years 2 months ago #265453

You are a great nicolas, the change was to my liking, Thanks
Now how do I get pagination bottom of the page?
Thank you again for you patience.

Attachments:
Last edit: 8 years 2 months ago by rtmetalli.

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #265473

Hi,

You can add such CSS after the previous one:

.hikashop_products_pagination_bottom{ clear:both !important; }

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
8 years 2 months ago #265580

Nicolas thanks, your help was very valuable. I only had to change your class
.hikashop_products_pagination_bottom{ clear:both !important; }
with
.hikashop_products_pagination div{ clear: both !important; }

I still want to ask you something, what class I have to change if I just want to change the button add to shopping list products, leaving unchanged that of the product? I am attaching reference images

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #265581

Hello,

Can you tell us what you exactly want to achieve through some screenshots for example so that we can understand your issue ?

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
8 years 2 months ago #265630

I would change the button style add to shopping list products in a carriage shaped button. The button add to cart in product page must remain the same.
Sorry for my bad English and

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #265638

Hi,

You don't need to change the class of the buttons.
You can already customize them individually in your CSS.
If you just want to customize the button of the listings, you can use such CSS:
.hikashop_products_listing .hikashop_cart_input_button{
...your CSS...
}

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 3
8 years 2 months ago #267495

Dear Sir,
I added css code in frond end cssfile of frontend_customer1.css:



Code:


Then the display on phone is OK but the display on desktop is not correct:


What is the matter and could you help me to solve that?

Website: link

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #267520

Hi,

Your problem is different.
The problem is that the height of the boxes is not consistent. You can add such CSS on your website to force it:

.hikashop_subcategories div.hikashop_category, .hikashop_products_listing div.hikashop_product {
    min-height: 280px;
}
Then it should display properly.

The following user(s) said Thank You: bluetooth

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 3
8 years 2 months ago #267546

Thanks Nicolas, Very good! It is OK now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Powered by Kunena Forum