Utilising white labeling in WordPress means the content management system is easier to view, less confusing to use, and customized to your brand’s specifications. It means that elements that have WordPress branding can be replaced with another brand of choice.

However experienced you may be, the crucial thing to remember before making any changes is to always make a backup of the functions.php file of the theme you’re working with. That way you always have a place to return to should anything unwanted happen and you need to return to the start point.

In fact, it’s a much better idea to make a child theme then make your customizations. Go ahead and do that now. I’ll wait.

For those who want to enhance their experience of white labeling or are new to this area of development, here are 10 tips that will help, along with examples from the experts who’ve done it themselves.

1. Manually coding for the inexperienced

For those not familiar with coding, there are plugins available that will add the code to the file for you directly from the dashboard. For instance, you can ask your developer to use White Label CMS to make the back end less confusing, such as personalising the dashboard so only the panels you want and need to see appear.

white label cos

But if you want to manually add elements to the install, edits to the functions.php file will be needed. Editing this file is a way to change the default behaviours of WordPress so you can add features and functionality without changing any of the core files that make WordPress work. It essentially acts as a plugin.

2. Rebranding the WordPress login page

When replacing the WordPress logo on the user login page, the size should be similar. Ideally, it should be around 300px by 130px. Ensure the existing login.png file is removed and the new file name inserted.

Code to use:

add_action(‘login_head’, ‘my_custom_login_logo’);
 function my_custom_login_logo() {
 echo ‘<style type=”text/css”>
 h1 a { background-image:url(‘.get_bloginfo(“template_directory”).‘/images/newlogo.png) !important; }
 <style>’;
 }

3. Logo hover text

By default the hover text on the WordPress logo on the login page reads “Powered by WordPress.” Use a code snippet to change it to text relevant to your brand.

Code to use:

<?php
 //* Do NOT include the opening php tag

//* Login Screen: Change login logo hover text
 function b3m_login_logo_url_title() {
 return 'REPLACE THIS WITH YOUR TEXT';
 }
 add_filter( 'login_headertitle', 'b3m_login_logo_url_title' );

4. WordPress welcome message

You can change the standard WordPress welcome message that reads “Howdy, Name” to a message relevant to the brand or user. Again, a shortcode snippet is all that is required.

Code to use:

add_action( 'wp_head', 'personal_message_when_logged_in' );

/**

* @author    Brad Dalton

* @example   http://wpsites.net/wordpress-admin/add-personal-welcome-message-for-logged-in-members/

* @copyright 2014 WP Sites

*/

function personal_message_when_logged_in() {

if ( is_user_logged_in() ) :

$current_user = wp_get_current_user();

echo '<div class="entry-title">';

echo 'Hi there ' . $current_user->user_firstname . '!';

echo '</div>';

else :

echo 'Hello, new visitor!';

endif;

}

5. Footer message

Every WordPress site has the standard text, “Thank you for creating with WordPress.” Businesses want their site to be personalized so this can also be white labeled and edited to display any message the owner or client desires.

Code to use:

Look for <p id=”footer-info”>

Delete the following code snippet:

<p id=”footer-info”><?php printf( __( ‘Designed by %1$s | Powered by %2$s’, ‘Divi’ ), ‘<a href=”http://www.elegantthemes.com” title=”Premium WordPress Themes”>Elegant Themes</a>’, ‘<a href=”http://www.wordpress.org”>WordPress</a>’ ); ?></p>

Replace it with the following code snippet and insert your custom info:

<p id=”footer-info”><?php printf( __( ‘Designed by %1$s | using the DIVI theme from %2$s | Powered by %3$s’, ‘Divi’ ), ‘<a href=”http://tj-webs.com/”>TJ-WEBS</a>’, ‘<a href=”http://www.elegantthemes.com” title=”Premium WordPress Themes”>Elegant Themes</a>’, ‘<a href=”http://www.wordpress.org”>WordPress</a>’ ); ?></p>

6. Custom contact widget

If you’re developing the site for a client and want anyone who works on the backend CMS to have your contact details, it’s possible to add a widget with your details attached. The snippet can include information such as your name, email address, and website.

Code to use:

 <?php

//* Do NOT include the opening php tag

//* Add theme info box into WordPress Dashboard

function b3m_add_dashboard_widgets() {

wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details','b3m_theme_info');

}

add_action('wp_dashboard_setup', 'b3m_add_dashboard_widgets' );

function b3m_theme_info() {

echo "<ul>

<li><strong>Developed By:</strong> B3Marketing, LLC</li>

<li><strong>Website:</strong> <a href='http://www.rickrduncan.com'>www.rickrduncan.com</a></li>

<li><strong>Contact:</strong> <a href='mailto:b3marketingllc@gmail.com'>b3marketingllc@gmail.com</a></li>

</ul>";

}

7. Edit admin color scheme

Color options are now numerous in the latest versions of WordPress. It could be that the site needs to be a specific shade to match existing branding not available as standard. This can be achieved with a code snippet along with a CSS style sheet that has been customized.

Code to use:


 function admin_color_scheme_picker( $user_id ) {

global $_wp_admin_css_colors;

ksort( $_wp_admin_css_colors );

if ( isset( $_wp_admin_css_colors['fresh'] ) ) {

// Set Default ('fresh') and Light should go first.

$_wp_admin_css_colors = array_filter( array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors ) );

}

$current_color = get_user_option( 'admin_color', $user_id );

8. White labeling plugins

Code snippets, which are mini-plugins that have less of a load on your site, can be used by many developers even if they don’t have much experience. But for beginners there are a range of plugins. Available from the WordPress Directory these plugins open up many avenues to white label elements such as customizing the Dashboard, removing unwanted menus and editing admin pages.

Check out Code Snippets. The snippet editor includes fields for a name, a visual editor-enabled description, and tags to allow you to categorize snippets.

9. User friendly interface

If you’re handing over the completed site to a client and they don’t have much experience in handling their WordPress CMS, there are some great options for presenting the user interface in a straightforward way. An example includes Ultimate Branding from WPMU DEV, which makes creating and uploading blogs incredibly simple. Another good option is White Label Branding.

10. Disable WordPress Admin bar

Keeping the CMS area uncluttered is important as it means everything is easy to locate and work with. Removing the admin bar from all users other than admins is an option that can be achieved by clicking on the appropriate box in the User Profile area. The result is that less memory is used, pages load faster, the experience is further customized and entry level users aren’t daunted by the appearance of the bar. You can also manually remove it and have more control, for example by choosing which admins can see it.

Code to use:

For the front end:

function remove_admin_from_dashboard() { echo '<style type="text/css"> #wpadminbar {display:none} </style>';} add_action('admin_head', 'remove_admin_from_dashboard');

For the back end:

function remove_toolbar_frontend (){ return false;} add_filter( 'show_admin_bar' , 'remove_toolbar_frontend');

White Labeling Your WordPress Site

These are just a few quick ways to white label your site. There are many other ways to add custom touches to the backend and frontend as well, but these are plenty to get you started. Have you white labeled your site. If so, what methods did you use? Any plugins? Feel free to sound off below!

 

Divi WordPress Theme

Posted by Anna Roberts

With a background in marketing, Anna is a freelance writer who likes to help others get results. She is passionate about plain English so enjoys the challenge of explaining a concept in an easy-to-read way. If she's not writing, she's usually reading. As well as a good novel, she loves marketing strategy, opinion blogs, and updates on the continuously changing online world.

Leave a reply

Your email address will not be published. Required fields are marked *