• Resolved maxwellmill

    (@maxwellmill)


    Hi there Nate,
    I am wondering if the menu could be 2 columns in iPhone 6 in landscape mode
    I have set up CSS media query as follows
    @media only screen
    and (min-device-width : 375px)
    and (max-device-width : 667px)
    and (orientation : landscape)

    DO you think it could be 2 columns Menu page

    Do you have some CSS I could use as there is a lot of space now that the website is using all the screen of the Ipone in landscape mode

    Cheers for now
    Maxwell

    https://ww.wp.xz.cn/plugins/food-and-drink-menu/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Maxwell,

    Probably the best way to do this is to use your own CSS to layout the menu. You can dequeue the plugin’s CSS code by going to Menus > Settings and setting the Style option “Don’t load any CSS styles”.

    Then you can open up /wp-content/plugins/food-and-drink-menu/assets/css/base.css and copy all of the styles into your own stylesheet. From there, you can modify the breakpoints in your css code, so that the columns collapse wherever you’d like.

    Thread Starter maxwellmill

    (@maxwellmill)

    Hi Nate, I had a go at that but got on better by editing your css

    One problem

    Can you send me the css to stop the price from wrapping on a samsung phone
    I have it working ok on the iphone but can not stop the price going onto a second line
    Menu Page

    Hi maxwellmill,

    Just FYI, if you edit the plugin’s CSS file, all of your changes will be obliterated the next time you update the plugin.

    I don’t really see any breakpoints on your site where the price goes to a second line. If you can tell me an exact screen width and point out the price that jumps to a second line there, I’ll take another look and see if I can reproduce it.

    Thread Starter maxwellmill

    (@maxwellmill)

    Hi Nate, thanks for the reply

    Late last night I fixed the problem by taking out MY own CSS!! that was causing the problem as was showing the client.
    Problem is fixed for now!!
    I had a go at getting 2 columns in landscape on a iphone 6

    I will do as you suggested with the CSS move on attempt 2
    When I recreated your file in my custom CSS it did not format as I expected, maybe the theme interferes

    One thing do you think 2 columns on an iPhone 6 in landscape will work??

    Cheers for now
    Maxwell

    Hi Maxwell,

    Your browser doesn’t know an iPhone 6 from an Xperia Z. It only knows screen width. It looks like the iPhone 6 shows 559px in landscape mode. So you just need to update the media query to break from one columns to two before that.

    So this:

    @media (max-width: 991px) {

    Could be:

    @media (max-width: 500px) {

    To be honest, I think it will be pretty tight. But you can always try and judge for yourself.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CSS for iphone 6’ is closed to new replies.