-
AuthorPosts
-
February 20, 2014 at 12:58 am #16143
Hi Support,
I am using a boxed layout on my site, but want to make it full width when viewed on an iPhone. I am wondering if there is an @media query I can write to turn on/off the boxed layout?
Thank you very much!
~Vanessa
February 20, 2014 at 1:48 am #16161Hey Vanessa,
since our theme is responsive depending on if you have selected full width or boxed the mobile version will inherit those stylings so it would require a lot of CSS to make this happen which we do not recommend. Tell me how you want to proceed.
February 20, 2014 at 3:03 am #16211Any recommendation from Support is highly regarded, so I’ll leave things be. =)
Thanks for the explanation though!
February 20, 2014 at 3:43 am #16244You’re welcome!
February 22, 2014 at 7:02 am #16860I applied the following code on my site to do just that. It seems to work fine.
@media (max-width: 979px) { .site, .x-navbar.x-navbar-fixed-top.x-container-fluid.max.width { width: 100%; } }
February 22, 2014 at 7:08 pm #16933Hey Berkin,
Thanks for writing in! As long as that’s working for you, that’s great. We were concerned with other constraints such as image sizing, how shortcodes behave on certain sizes, et cetera. However, if you don’t seem to be having any problems with this, then we’re glad to hear it. 🙂
August 5, 2014 at 10:39 pm #78636It would be great if X came with this functionality in the next release. Having a full width layout on phone would be great. I am sure this is doable as the other theme I am using plays nicely with switching full width on phone and boxed on desktops. X has a great team and am sure it won’t be a big task for the guys. Looking forward to it. 🙂
August 6, 2014 at 8:27 am #78795Hi Deepak,
Thanks for writing in,
We’ll add that on additional feature list for future updates,
Thanks for the comment
August 6, 2014 at 7:34 pm #79313Thanks! Will be looking forward to this awesome feature.
August 6, 2014 at 7:41 pm #79318Thanks as well! We always make sure to keep you guys posted on the latest version like in this new thread for X 2.3.0 🙂 http://theme.co/x/member/forums/topic/release-notes-x-v2-3-0-x-shortcodes-v2-3-4/. Feel free to post if you have any further questions / suggestions! Have a great day.
April 10, 2016 at 10:43 am #875272WOW I just applied the above code and it totally worked! This is so awesome this is a feature I’ve wanted for so long but have never been able to figure it out. MAJOR props to you Berkin E
April 10, 2016 at 10:11 pm #875828Thanks for letting us know that it has worked for you.
May 4, 2016 at 8:18 am #912430Hi,
Thanks for the great tip Berkin E
Does anybody have an idea how to make it even better by first hiding background from the view and only after that scaling content and sidebar if necessary?
Like wptavern.com has: http://wptavern.com/ (resize your browser window to see the effect)
May 4, 2016 at 11:28 am #912763Hi @janih,
It’s possible by Custom CSS.
Would you mind providing us with your website URL so we can take a closer look?
Thank you.
May 4, 2016 at 12:52 pm #912926This reply has been marked as private. -
AuthorPosts