├── README.md ├── assets ├── css │ └── bbcd-admin.css └── js │ └── bbcd-admin.js ├── bb-custom-dashboard.php ├── classes └── class-bb-custom-dashboard.php └── readme.txt /README.md: -------------------------------------------------------------------------------- 1 | **Beaverbuilder Custom Dashboard Plugin** 2 | ----------------------------------------- 3 | 4 | Create your own customized WordPress Admin Dashboard with a Beaver Builder Template 5 | 6 | This plugin removes all the default WordPress Admin Widgets and displays a Beaver Builder Template in full width. 7 | 8 | ---------- 9 | 10 | #Instructions: 11 | 12 | 1. Create a Beaver Builder Template named 'dashboard' 13 | 14 | 2. Upload and activate the plugin. 15 | 16 | #Video Review: 17 | 18 | https://youtu.be/oazyzrS9nCM 19 | -------------------------------------------------------------------------------- /assets/css/bbcd-admin.css: -------------------------------------------------------------------------------- 1 | #bbcd-layout.welcome-panel { 2 | margin: 0; 3 | padding: 0; 4 | background-color: transparent; 5 | border: 0px; 6 | } 7 | 8 | #bbcd-layout .welcome-panel-content { 9 | margin-left: 0; 10 | max-width: none; 11 | } 12 | 13 | #dashboard-widgets .meta-box-sortables { 14 | display: inline; 15 | } 16 | 17 | .metabox-holder .postbox-container .empty-container { 18 | border: 0; 19 | } 20 | .metabox-holder .postbox-container .empty-container:after { 21 | content: none; 22 | } 23 | #dashboard-widgets .postbox-container .empty-container { 24 | display: none; 25 | } 26 | -------------------------------------------------------------------------------- /assets/js/bbcd-admin.js: -------------------------------------------------------------------------------- 1 | (function($){ 2 | jQuery(document).ready(function($) { 3 | $('#welcome-panel').after( $('#bbcd-layout').show() ); 4 | }); 5 | })(jQuery); -------------------------------------------------------------------------------- /bb-custom-dashboard.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'advanced' => array(), 46 | 'side' => array(), 47 | 'normal' => array(), 48 | ) ); 49 | } 50 | 51 | /** 52 | * Enqueue custom styles and scripts in admin 53 | * 54 | */ 55 | function enqueue_styles_scripts() { 56 | 57 | wp_register_style( 'bbcd-styles', plugins_url( 'assets/css/bbcd-admin.css', dirname(__FILE__) ), array(), '' ); 58 | wp_register_script( 'bbcd-js', plugins_url( 'assets/js/bbcd-admin.js', dirname(__FILE__) ), array(), '' ); 59 | 60 | wp_enqueue_style( 'bbcd-styles' ); 61 | wp_enqueue_script( 'bbcd-js' ); 62 | } 63 | 64 | /** 65 | * Display dashboard layout 66 | * 67 | */ 68 | function display_dashboard_layout() { 69 | 70 | if ( get_current_screen()->base !== 'dashboard' ) { 71 | return; 72 | } 73 | 74 | $layout = '
'; 79 | 80 | echo $layout; 81 | } 82 | } -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | -------------------------------- 2 | 3 | Copyright 2016 Blue Dog Digital Marketing 4 | 5 | -------------------------------- 6 | 7 | ********* 8 | Change Log 9 | ********* 10 | 11 | 0.5 - May 2021 12 | 13 | - It's still alive! 14 | - Minor css tweak to hide dashboard widgets 15 | - Remove broken link from README.md 16 | 17 | 0.4 - October 2016 18 | 19 | - Refactored code - Thanks Jason Hipwell! 20 | 21 | 0.3 - August 2016 22 | 23 | - CSS tweaks. Thanks David Waumsley! 24 | 25 | 0.2 - July 2016 26 | - double shortcode error fixed 27 | 28 | 0.1 - July 2016 29 | - plugin created 30 | --------------------------------------------------------------------------------