WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Three Column Dashboard? (48 posts)

  1. Princess_Giggles
    Member
    Posted 2 years ago #

    Why is a three column dashboard no longer an option with the latest version of WordPress? Is there a way to hack that back?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Why did you think it wasn't?

  3. Princess_Giggles
    Member
    Posted 2 years ago #

    Because since updating to 3.4 when I check "Screen Options" the only Screen Layout options are 1 or 2 columns.

    I can't see 3 columns as an option. Is it an invisible option?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    That's because the third column is the left hand menu - which always has to be there. The rest of the page is then split into 1 or 2 columns.

  5. Princess_Giggles
    Member
    Posted 2 years ago #

    I had three columns plus the left hand menu before the update to 3.4.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Not via the core Screen Options you didn't. There has only ever been a choice of 1 or 2 columns.

  7. Princess_Giggles
    Member
    Posted 2 years ago #

    Um, yes. Via the core Screen Options I did. I reverted one of my blogs back to 3.3.2 and got a screen capture for you.

    http://www.missgiggles.com/images/4columns.gif

    Why did I have an option of up to 4 columns with 3.3.2 and only up to 2 columns with 3.4?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Forbidden
    You don't have permission to access /images/4columns.gif on this server.

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    I have the option of 1-4 columns (On all my sites, using 3.4).... that's not the norm?

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    It depends (and always has depended) upon the width of your screen. If you don't have a browser window big enough for 3 or 4 columns, you won't get those options. Nothing has changed as far as I know.

  11. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    O I C!

  12. Sandeep272
    Member
    Posted 2 years ago #

    I cant see 3 column on screen.

  13. Make your screen wider.

    And nothing has changed that I heard of either. it auto adjusts when I'm on Big Bertha (my big monitor) nicely.

  14. Princess_Giggles
    Member
    Posted 2 years ago #

    Screen shot - http://www.missgiggles.com/blog/?attachment_id=5810

    My screen size has not changed. My screen resolution has not changed. I am viewing my blog running 3.3.2 and my blog running 3.4 on the exact same browser. The blog running 3.3.2 has the option of up to four columns (and I've been running it with three). The blog running 3.4 only has the option of up to two columns.

    The only thing that has changed is the version of WordPress each blog is running.

  15. Princess_Giggles
    Member
    Posted 2 years ago #

    Esmi - which is it?

    Not via the core Screen Options you didn't. There has only ever been a choice of 1 or 2 columns.

    It depends (and always has depended) upon the width of your screen. If you don't have a browser window big enough for 3 or 4 columns, you won't get those options. Nothing has changed as far as I know.

    Have I only ever had the option of 1 or 2 columns or has 3 or 4 columns always been an option depending on screen size?

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    Sorry - I have my browser window at a set size and, what with it being almost midnight last night when I replied to you, I forgot that the number of potential columns increases as the screen/viewport widens. Nothing has changed in this version of WordPress.

  17. I still see it on WP 3.4

    http://cl.ly/1C3C3P0d3J1N16302z3a

  18. belg4mit
    Member
    Posted 2 years ago #

    Upon reloading the dashboard I too have suddenly lost my 3rd column,
    although it was there for a day or two after upgrading last week.

    It is not determined by screen size; that would be asinine,
    and I have a widescreen.

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    It is not determined by screen siz

    The number of columns available in Screen Options is determined by the width of the current page. This was a known issue with WordPress 3.3 & some browsers. See if the following helps.

    1. Switch back to 3 columns (if you haven't already) via Screen Options on the Dashboard
    2. Empty your browser cache
    3. Close your browser then re-open it.
    4. Try a different browser.
    5. Try a different machine
    6. Try creating another admin user, then logging out of your old admin account and logging in as the new admin user

    If you continue to have problems despite carrying out all of these steps, try installing & activating
    http://wordpress.org/extend/plugins/use-google-libraries/ to force a true browser flush.

  20. belg4mit
    Member
    Posted 2 years ago #

    No, see, the problem is there is no option for 3 columns under screen options. It now only shows 1 or 2 columns, so "switch back to 3 columns" (the crux of the problem) is a non-starter.

    I have logged out of wordpress and back in, tried other browsers/users,
    and am already using google libraries.

    Manually inserting a layout_columns record into wp_options did not help
    either. This seems to be used in render_screen_layout of wp-admin/includes/screen.php to create the list of radio buttons.

  21. esmi
    Forum Moderator
    Posted 2 years ago #

    How wide is your screen. I get options for 1,2,3 or 4 columns on my 1600px wide screen.

  22. belg4mit
    Member
    Posted 2 years ago #

    1440 pixels wide, but to have it be resolution dependent would not only be stupid (let the user have control damnit), it does not seem possible given the current code since the radio buttons are created server side.

    My hardware has not changed, yet this morning I have lost my three column layout/ability to have one.

  23. esmi
    Forum Moderator
    Posted 2 years ago #

    You might think the width dependency is stupid but that is how it works - although I'm pretty sure that you can select 2 columns irrespective of your screen width. It's the 3 & 4 column choices that are screen width dependant. The latter kick in around the 1200-1300 viewport width.

  24. belg4mit
    Member
    Posted 2 years ago #

    What I've been able to find thus far, is that the radio buttons are there, but that by default wp-admin/css/wp-admin.css hides the options for 3 and 4. I cannot find any code that makes them display, conditionally or otherwise, in PHP or JS. The relevant identifiers are columns-prefs and screen_columns.

    *blachh* >-P

  25. belg4mit
    Member
    Posted 2 years ago #

    I also happen to have an installation of WordPress 3.3.2 running on the same server, and it does show me three columns as it ought.

  26. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  27. Princess_Giggles
    Member
    Posted 2 years ago #

    Here's the code from wordpress/wp-admin/includes/dashboard.php for version 3.3.2

    function wp_dashboard() {
    	global $screen_layout_columns;
    
    	$screen = get_current_screen();
    
    	$hide2 = $hide3 = $hide4 = '';
    	switch ( $screen_layout_columns ) {
    		case 4:
    			$width = 'width:25%;';
    			break;
    		case 3:
    			$width = 'width:33.333333%;';
    			$hide4 = 'display:none;';
    			break;
    		case 2:
    			$width = 'width:50%;';
    			$hide3 = $hide4 = 'display:none;';
    			break;
    		default:
    			$width = 'width:100%;';
    			$hide2 = $hide3 = $hide4 = 'display:none;';
    	}
    ?>
    <div id="dashboard-widgets" class="metabox-holder">
    <?php
    	echo "\t<div id='postbox-container-1' class='postbox-container' style='$width'>\n";
    	do_meta_boxes( $screen->id, 'normal', '' );
    
    	echo "\t</div><div id='postbox-container-2' class='postbox-container' style='{$hide2}$width'>\n";
    	do_meta_boxes( $screen->id, 'side', '' );
    
    	echo "\t</div><div id='postbox-container-3' class='postbox-container' style='{$hide3}$width'>\n";
    	do_meta_boxes( $screen->id, 'column3', '' );
    
    	echo "\t</div><div id='postbox-container-4' class='postbox-container' style='{$hide4}$width'>\n";
    	do_meta_boxes( $screen->id, 'column4', '' );
    ?>
    </div></div>
    
    <form style="display:none" method="get" action="">
    	<p>
    <?php
    	wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    	wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    ?>
    	</p>
    </form>
    
    <?php
    }

    And here's the code for the exact same file from 3.4.1

    function wp_dashboard() {
    	$screen = get_current_screen();
    	$class = 'columns-' . get_current_screen()->get_columns();
    
    ?>
    <div id="dashboard-widgets" class="metabox-holder <?php echo $class; ?>">
    	<div id='postbox-container-1' class='postbox-container'>
    	<?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    	</div>
    	<div id='postbox-container-2' class='postbox-container'>
    	<?php do_meta_boxes( $screen->id, 'side', '' ); ?>
    	</div>
    	<div id='postbox-container-3' class='postbox-container'>
    	<?php do_meta_boxes( $screen->id, 'column3', '' ); ?>
    	</div>
    	<div id='postbox-container-4' class='postbox-container'>
    	<?php do_meta_boxes( $screen->id, 'column4', '' ); ?>
    	</div>
    </div>
    
    <?php
    	wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
    	wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    
    }

    That's a pretty big change in code. Seems to me like it's a change on the WordPress side of things, not an issue on the plugins side of things.

  28. That it's working for most of us and not for some is why we think it's a plugin :)

    Yes, it changed. The number of columns picker is still there, and it still works.

  29. Princess_Giggles
    Member
    Posted 2 years ago #

    WordPress changed. The code actually was changed for column selection. With 3.3, the size of my screen did not change the options I had. With 3.4 it does. The change in code on WordPress is what is making the difference now. It's a change in WordPress code, not a plugin. If you have a wide screen then you still have the options of four columns and you are going to think that those of us with smaller screens are having plugin issues. Before with 3.3 the option of four columns was present regardless of screen width. The code change clearly indicates that it is a WordPress change, not a plugin issue.

  30. esmi
    Forum Moderator
    Posted 2 years ago #

    The change in code on WordPress is what is making the difference now.

    Then why is it working for others but not for you?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags