- This topic has 6 replies, 2 voices, and was last updated 9 years, 1 month ago by Tom.
July 19, 2014 at 7:55 am #4722Cassandra Teo
Whenever I resize my browser (ie. change its width), the layout of my site distorts as well. Is there any way to stop it from moving? I have managed to do this before, just do not remember how as it has been awhile.
CassieJuly 19, 2014 at 9:13 am #4723TomLead DeveloperLead Developer
When the browser resizes, GeneratePress adapts and makes it easier for the user to view the content (sidebar goes below the content, content area becomes larger etc..) – this is mainly for mobile devices.
Currently, there’s no option to turn this off without some CSS tweaks and other small modifications.
However, I do realize the need to be able to turn this off in certain cases, so I will be looking at adding an option to disable mobile responsive functionality in a later version.
Let me know if you have any questions,
TomJuly 21, 2014 at 7:57 pm #5481Cassandra Teo
Could you please help me with the modifications so that the layout does not move? My site does not look good at all when opened using mobile devices.
Would it be possible to develop something so that users can develop a seperate layout (ie. rearrange it) themselves?
CassieJuly 22, 2014 at 9:40 am #5613TomLead DeveloperLead Developer
I will add some things to the next version that will allow you to switch off the mobile responsive features easily.
It’s definitely possible, but would be a lot of coding – perhaps one of the many WordPress mobile plugins out there would intrigue you? Try doing a quick search for them to see if you can find one you like.
TomJuly 23, 2014 at 3:06 am #5827Cassandra Teo
Thanks a lot, Tom.
The mobile features aren’t important at this point of time to my client. They just want the site to not adapt to the browser size. How do I achieve that?
Please and thank you 🙂July 23, 2014 at 8:35 am #5980TomLead DeveloperLead Developer
There’s a few steps involved that involve some PHP and CSS.
I’ve made it so the next version allows you to define one single constant in your functions.php file that will disable mobile responsive features – it will be out soon 🙂
TomAugust 3, 2014 at 1:13 pm #8860TomLead DeveloperLead Developer
With the new version of GeneratePress (1.1.0) there’s a simple constant you can define to disable the mobile responsive features.
Simply add this inside your child theme’s functions.php file:
If you don’t have/know how to create a child theme, you can use this:
Simply install that like any other theme and activate (you may have to re-set your menus).
Then go to “Appearance > Editor > functions.php” and you can add the code provided.
- You must be logged in to reply to this topic.