I am using multipress, but users with small screens cannot access the HTML tab as the Publish meta box has a div that slides above it, disabling the ability to click it. One idea is to force a single column layout, but there are no options for this in screen options. Is there another way to do it?
Leave a Reply
You must be logged in to post a comment.
You can use the filter
screen_layout_columns
to set only one column for the post screenget_user_option_screen_layout_post
to force the user option to 1.If you want to use that for custom post type then use
get_user_option_screen_layout_{post_type}
The following code will do it:
simply you can do that :
example with “message” post type :
see: http://codex.wordpress.org/Function_Reference/get_user_option
To clarify: there are options under Screen Options for forcing a one column layout, but they are only available choices when on an WordPress editor page like Posts or Pages.
The Screen Options button appears like a tab next to the Help button in the top right corner of the WordPress Dashboard.
@sorich87 has the best possible solution. Including that code in functions.php will force all users into one column layout in the editor, which could help alleviate confusion for less technical users.
This one worked for me:
It will override the default option with whatever option a user has explicitly selected in the Screen Options panel in WP admin. This is better for usability in my opinion.
Use a theme that supports smaller
widths.
Edit your CSS directly.
Add a CSS media query stylesheet.
Just another alternative using the same techniques as accepted solution:
Just add the below line into function.php