Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 8 down vote accepted

You can use the filter screen_layout_columns to set only one column for the post screen get_user_option_screen_layout_post to force the user option to 1. The following code will do it:

function so_screen_layout_columns( $columns ) {
    $columns['post'] = 1;
    return $columns;
}
add_filter( 'screen_layout_columns', 'so_screen_layout_columns' );

function so_screen_layout_post() {
    return 1;
}
add_filter( 'get_user_option_screen_layout_post', 'so_screen_layout_post' );
share|improve this answer
    
I tried your code. Its working perfectly. But i see publish tab in the top of the page. Is there a way to move it bottom of the page by giving any priority? –  Giri Dec 31 '11 at 19:22
    
    
Thankyou....... –  Giri Jan 2 '12 at 7:24
    
I tried that code bro. But its not working. My post metabox order looks like this as of now. Title,submit,content,custom metaboxes added by plugins,tags –  Giri Jan 2 '12 at 7:42
    
Comment on the other answer then, so that it can be corrected. –  sorich87 Jan 2 '12 at 8:37

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.

share|improve this answer
  • Use a theme that supports smaller widths.

    Edit your CSS directly.

    Add a CSS media query stylesheet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.