266

How to Move WPCodeBox Editor to the Middle with Snippet List on the Right

Powered by WPCodeBox

This WordPress code snippet for WPCodeBox allows you to easily move the Snippet List to the right, placing the powerful WPCodeBox Editor conveniently in the middle. Optimize your WordPress admin area workflow by downloading and running this snippet in the “Admin Area.”


<?php 
/**
 *   WPCodeBox Editor in the Middle layout v1.0.0
 *   Download the snippet and set it to run in the "Admin Area"
 */
 
add_action('admin_head', function(){
    
    if( isset( $_GET['page'] ) && $_GET['page'] === 'wpcb_menu_page_php') {
    
        echo <<<EOD
        <style type="text/css">
        .toplevel_page_wpcb_menu_page_php .list-container,
        .tools_page_wpcb_menu_page_php .list-container
        {
            order: 10;
            margin-right: 15px;
        }
        </style>
EOD;
}
});

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.