New Landing How can we help? Themeforest Theme Support Neighborhood Product description alignment on mobile screen

Viewing 15 posts - 1 through 15 (of 16 total)
  • #138551
    neerajgulati
    Member
    Post count: 67

    Hi,

    The product description i.e. the text and the price are not displaying properly which leads to the entire product gallery to loose alignment.

    Please find the problems in the attached screenshots.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #138622
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    ul.products li.product .product-details {
      float: left;
      text-align: left;
    }
    
    .woocommerce ul.products li.product .price {
      text-align: right;
    }

    – Kyle

    #138815
    neerajgulati
    Member
    Post count: 67

    Hi Kyle,

    Thanks for this one. The alignment is sorted.

    The products on mobile screen are still going out of alignment (Please refer to the screenshot attached). What I think is happening is that on the mobile screen based on the size of the screen the images become smaller while the text remains the same size which leads to the alignment going out of order.

    Please help in sorting this out. Thanks

    Attachments:
    You must be logged in to view attached files.
    #138912
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    There’s not really any way around that I’m afraid, unless I provide you with some custom css that will set the title to a max of say 2 lines, which means some titles will be cut off

    – Kyle

    #139032
    neerajgulati
    Member
    Post count: 67

    Hi Kyle,

    Is there a way to make the font size smaller for product name across the site. Hopefully this should make things better.

    Thanks

    #139038
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    .woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3 {
      font-size: 13px;
    }
    #139050
    neerajgulati
    Member
    Post count: 67

    Thanks Kyle, this works fine.
    Now is it possible to hard code the product name to 3 lines. Essentially for anything more 3 lines will get truncated and anything less than three lines will have empty space.

    Thanks

    #139057
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    @media only screen and (max-width: 479px) {
    body .woocommerce-shop-page ul.products li.product, body .product_list_widget > div > ul.products li.product {
    max-height: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 350px;
    }
    }

    That’s the best I can do

    – Kyle

    #139059
    neerajgulati
    Member
    Post count: 67

    Hi Kyle,

    This works perfect!

    Thanks!

    #139061
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great 🙂 No problem

    #158730
    dreikunst
    Member
    Post count: 20

    Hey,

    I have some alignment questions for shop and cart section.

    1) shop page: is it possible to set all prices under the article pictures to the left.see att. screenshot “screen1.jpg”

    2) set all cart elements to the left under the headers. like att. “screen2.jpg”

    3) same like screen3.jpg

    Attachments:
    You must be logged in to view attached files.
    #158739
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    1) Yes, add this to your custom css:

    .woocommerce ul.products li.product .price {
      text-align: left;
    }
    ul.products li.product .price {
      float: left;
    }
    ul.products li.product .product-details {
      width: 100% !important;
    }

    2 & 3) Unfortunately not sorry, as they are built using tables

    – Kyle

    #158751
    dreikunst
    Member
    Post count: 20

    Thank you for the quick answer.

    and is it possible at the “additional information” tabs?

    #158754
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Is what possible?

    – Kyle

    #158760
    dreikunst
    Member
    Post count: 20

    to set the alignment to the left. or is it also a table which is used there?

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register