Wordpress Customization

Wednesday, March 13, 2013








WordPress is a Complete Open source content management System primarily used for publishing platforms and blogs.This page shows you the WP Stats of WordPress usage.
When we want to create a professional WordPress websites with lots of Authors on it.We definitely want a professional look of it but wordpress logos in header, footer and on login pages will not give its professional shape.Anyone don,t want to have branding of any other company on its website whether it is open source or it.Today I will show you how we can Remove WordPress Branding Easily but Before that Remove thatWordPress is Open Source and Morally It is not a good Idea.
My priority is kept it is simple and better as much as i can.

Requirements;

  • Access to file manager
  • Text Editor
  • Time
Lets start;

Login Logo;

First I will show you how to Replace the logo at your login page.For this we are going to use a plugin which is Login Logo .
 Just Download and install plugin.This plugin allows you to customize the logo on the WordPress login screen. There is zero configuration. You just drop the logo file into your wp-content directory, named "login-logo.png" and this plugin takes over.Result is Shown Below

Footer Text ;

 For Footer Text and Link we have to do some PHP editing;
Edit this file Located in
    "public_html/YOURWEBSITE.com/wp-admin/admin-footer.php"
Replace the Coding with your Coding as shown

   See the Footer result below

Welcome Message;

 When a new Author other register to your website he see the welcome message from About WordPress now we will see how to remove it.
To do this we just have to put an additional PHP function in wordpress
goto /wp-admin/includes and edit dashboard.php
add_action('wp_dashboard_setup', 'hide_wp_welcome_panel' );

function hide_wp_welcome_panel()
{
if ( current_user_can( 'edit_theme_options' ) )
$ah_clean_up_option = update_user_meta( get_current_user_id(), 'show_welcome_panel', false );
}
Add this code before function   wp_welcome_panel() {  as shown
After saving you will get the desired result as shown below;


 Wordpress feed from dashboard;

 for its removal again edit dashboard.php in wp-admin/includes and remove the following code nearly at line number 92
// Primary feed (Dev Blog) Widget
if ( !isset( $widget_options['dashboard_primary'] ) ) {
$update = true;
$widget_options['dashboard_primary'] = array(
'link' => apply_filters( 'dashboard_primary_link', __( 'http://wordpress.org/news/' ) ),
'url' => apply_filters( 'dashboard_primary_feed', __( 'http://wordpress.org/news/feed/' ) ),
'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ),
'items' => 2,
'show_summary' => 1,
'show_author' => 0,
'show_date' => 1,
);
}
wp_add_dashboard_widget( 'dashboard_primary', $widget_options['dashboard_primary']['title'], 'wp_dashboard_primary', 'wp_dashboard_primary_control' );

// Secondary Feed (Planet) Widget
if ( !isset( $widget_options['dashboard_secondary'] ) ) {
$update = true;
$widget_options['dashboard_secondary'] = array(
'link' => apply_filters( 'dashboard_secondary_link', __( 'http://planet.wordpress.org/' ) ),
'url' => apply_filters( 'dashboard_secondary_feed', __( 'http://planet.wordpress.org/feed/' ) ),
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
'items' => 5,
'show_summary' => 0,
'show_author' => 0,
'show_date' => 0,
);
}
wp_add_dashboard_widget( 'dashboard_secondary', $widget_options['dashboard_secondary']['title'], 'wp_dashboard_secondary', 'wp_dashboard_secondary_control' );
and then move to line 70 and remove following code:

// WP Plugins Widget
if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) )
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); 
see the result below:



Removal From title;

Now i will tell you that how you will remove the Wordpress from the title of admin page; first see the result and understand what i am talking about
to do this go to wp-admin folder and edit admin-header file and replace wordpress on line 33 by your custom title as shown below;

WP Logo from header

 Put this in your functions.php of your theme
function remove_wp_logo() {  
    global $wp_admin_bar;  
    $wp_admin_bar->remove_menu('wp-logo');  
}  
add_action( 'wp_before_admin_bar_render', 'remove_wp_logo' ); 


Copy right ::: http://it.infooid.com/

No comments:

Post a Comment

 

Most Reading