Daily Archives: April 7, 2013

Word Press

How to Add Custom Dashboard Widgets in WordPress?

Copy and paste Below code in your function.php file


add_action('wp_dashboard_setup', 'my_own_custom_dashboard_widgets');

function my_own_custom_dashboard_widgets() 
{
    global $wp_meta_boxes;
    wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
}
// This Function is chaining function for my_own_custom_dashboard_widgets
// This is display custom widget text.
function custom_dashboard_help() 
{
      echo '<p>Welcome to Custom Blog <a href="https://shahkeyul.wordpress.com/">Web Expert Developers</a>.</p>';
}
Advertisements

How to Change the Footer in WordPress Admin Panel?

Copy and paste Below code in your function.php file


function footer_admin () 
{
  echo 'Powered  by <a href="https://shahkeyul.wordpress.com/" target="_blank">Web Expert Developers</a> | Designed by <a href="https://shahkeyul.wordpress.com/" target="_blank">Web Expert Developers</a> </p>';
}

add_filter('admin_footer_text', 'footer_admin');
Word Press

How to Add a Custom Dashboard Logo in Worpdpress?

Copy and paste Below code in your function.php file


function my_custom_logo() 
{
  echo '<style type="text/css"> 
          #header-logo 
          { 
               background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; 
          }
        </style>
  ';
}
add_action('admin_head', 'my_custom_logo');