Fitting WordPress into Everyone's Shoe

CMS Developers Conference

  • Open Source with room for expansion

  • Highly Customizable
  • Designed for anyone, not just developers

White Label the Login Logo

<?php
//* Replace WordPress login logo with your own
add_action('login_head', 'sms_custom_login_logo');
function sms_custom_login_logo() {
    echo '<style>
    h1 a { background-image:url("http://www.gravatar.com/avatar/31f86e9ab173f01fa86fe65bf74a8686?s=64") !important;  margin-bottom: 0 !important; padding-bottom: 0 !important; }
    .login form { margin-top: 10px !important; }
    </style>';
}

White Label Login Logo URL & Title

<?php
//* Change the URL of the WordPress login logo
add_filter('login_headerurl', 'sms_url_login_logo');
function sms_url_login_logo(){
    return get_bloginfo( 'wpurl' ); // Put your logo URL here
}


//* Change login logo title
add_filter( 'login_headertitle', 'sms_login_logo_url_title' );
function sms_login_logo_url_title() {
  return 'Powered by Sumon Selim'; // Put your logo URL title here
}




Change Welcome Message

<?php
//* Change the welcome message of admin bar
add_filter('gettext', 'sms_change_howdy', 10, 3);

function sms_change_howdy($translated, $text, $domain) {
 
    if (!is_admin() || 'default' != $domain)
        return $translated;
 
    if (false !== strpos($translated, 'Howdy'))
        return str_replace('Howdy', 'স্বাগতম', $translated);
 
    return $translated;
}



Change Dashboard Header Logo

<?php
//* Change Dashboard header logo
add_action('admin_head', 'sms_custom_logo');
function sms_custom_logo() {
echo '
        <style type="text/css">
        #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { 
	background-image: url("http://www.gravatar.com/avatar/31f86e9ab173f01fa86fe65bf74a8686?s=20") !important; 
	background-position: 0 0;
        color:rgba(0, 0, 0, 0);
	}
        #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon {
	background-position: 0 0;
	}	
</style>
';
}



Customize Admin Footer

<?php
//* Change footer message
add_filter('admin_footer_text', 'change_footer_message');
function change_footer_message () { 
       echo 'Powered by Sumon Selim'; 
}


//* Remove footer version
add_action( 'admin_menu', 'my_footer_shh' );
function my_footer_shh() {
    remove_filter( 'update_footer', 'core_update_footer' ); 
}



Clean Up Admin Dashboard

<?php
//* Remove unwanted dashboard widgets for relevant users
function sms_remove_dashboard_widgets() {
    $user = wp_get_current_user();
    if ( ! $user->has_cap( 'manage_options' ) ) {
        remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
        remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
        remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
        remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
    }
}
add_action( 'wp_dashboard_setup', 'sms_remove_dashboard_widgets' );
 



Clean Up Admin Dashboard

<?php
//* Remove menu item
function sms_remove_comments_menu_item() {
    $user = wp_get_current_user();
    if ( ! $user->has_cap( 'manage_options' ) ) {
        remove_menu_page( 'edit-comments.php' );
    }
}
add_action( 'admin_menu', 'sms_remove_comments_menu_item' );
 



Free Plug-ins

  • White Label CMS
  • AG Custom Admin
  • Branded Login Screen
  • Admin Menu Editor

More

Have questions?

Sumon M. Selim

Home sapiens by born.
Coder by heart.
Entrepreneur by passion.

 

 

me@sumonselim.com
SumonMSelim

Fitting WordPress into Everyone's Shoe

By Muhammad Sumon Molla Selim

Fitting WordPress into Everyone's Shoe

Fitting WordPress into Everyone's Shoe

  • 2,254