Resizing the checkout table for mobile - by RasterEyes

This topic has 6 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Eva Kemp

  • Avatar: RasterEyes
    RasterEyes
    Participant
    November 15, 2015 at 23:04

    The table showing items in cart in the checkout portion of the theme do not scale at mobile size.

    Here is an image illustrating this problem:
    Resizing Table Problem

    I found a very simple alteration in the code that would fix this problem.

    Here is a screen shot of the alteration using developer tools:
    <img src=”http://everybodycolors.com/images/resizedTableExample.png
    ” alt=”Resized Table Example” />

    All I did was change that one element of that specific css selector from “nowrap” to “wrap” and it makes the table completely responsive, even at mobile screen sizes.

    I tried adding this code to my custom css:

    @media only screen (max-width: 767px){
    .table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td { 
    	white-space: wrap !important;
    }}

    But it doesn’t seem to solve the problem or do what I would expect it to do. Any idea why? Thanks!

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: RasterEyes
    RasterEyes
    Participant
    November 15, 2015 at 23:15

    Clicking the edit link to fix those image tags that I put in that post takes me to a pretty much empty page. How do I edit that?

    This is how they’re supposed to be:

    Here is an image illustrating this problem:
    Resizing Table Problem

    Here is a screen shot of the alteration using developer tools:
    Resized Table Example

    Avatar: Eva
    Eva Kemp
    Support staff
    November 16, 2015 at 14:17

    Hello,

    Please provide us with FTP credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: RasterEyes
    RasterEyes
    Participant
    November 16, 2015 at 18:01

    Are you thinking of just changing the code in https://everybodycolors.com/wp-content/themes/woopress/css/bootstrap.min.css directly? If so I can do that, but I was hoping there was a way to change it in my child theme’s style sheet so that when a new version of the theme is installed it doesn’t get overwritten. Or is there some other way to ensure the alteration survives updates?

    Avatar: RasterEyes
    RasterEyes
    Participant
    November 16, 2015 at 20:07

    I have changed the code in https://everybodycolors.com/wp-content/themes/woopress/css/bootstrap.min.css directly for now because the site had to go live this morning. Let me know if you know if this is a problem or if there is any way to change that wont get overwritten by a theme update. Thanks!

    Avatar: Eva
    Eva Kemp
    Support staff
    November 16, 2015 at 23:12

    Hello,

    We don’t recommend to make changes in the file bootstrap.min.css. This is default bootstrap file and you may corrupt some styling for responsive design.

    Please look at the screenshot:
    http://storage3.static.itmages.com/i/15/1116/h_1447711892_9360812_baf39ea8c3.png
    As you can see there is a scroll bar to view all information in the table.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.