Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have seen code in an answer to this question, how to remove the promotional back link to WordPress.org in my theme. I have added this to my theme's CSS but there is no change.

Am I missing see some thing? Apologies for my Ignorance .

Code I have used:

#site-generator {
display: none; }

How can you remove the widgets from dashboard and add new customized widgets ? Is there possibility to hide the date and time from posts ?

Update :Could anybody tell me ,If I can remove the term 'wordpress' from displaying on title bar?

share|improve this question
    
@Thomas McDonald How do you call this question as "question is not specfic to 3.0.1" ? –  user391 Sep 9 '10 at 5:35
    
@user391 The question is about functionality that is common to a wide range of WordPress versions. –  Thomas McDonald Sep 10 '10 at 15:39
add comment

4 Answers 4

up vote 10 down vote accepted

Here is the code I always use whenever I setup a new wordpress blog:

CUSTOM ADMIN FOOTER TEXT

// CUSTOMIZE ADMIN FOOTER TEXT
   function custom_admin_footer() {
    echo '<a href="http://www.netconstructor.com/">Website Design by NetConstructor, Inc.</a>';
   }
   add_filter('admin_footer_text', 'custom_admin_footer');

REMOVE VERSION INFO FROM THE HEAD OF FEEDS

// REMOVE VERSION INFO FROM THE HEAD OF FEEDS
   function complete_version_removal() { return ''; }
   add_filter('the_generator', 'complete_version_removal');

REMOVE JUNK FROM THE HEADER OF PUBLIC WEBSITE PAGES

// REMOVE JUNK FROM THE HEADER OF PUBLIC WEBSITE PAGES
   remove_action('wp_head', 'rsd_link');
   remove_action('wp_head', 'wp_generator');
   remove_action('wp_head', 'feed_links', 2);
   remove_action('wp_head', 'index_rel_link');
   remove_action('wp_head', 'wlwmanifest_link');
   remove_action('wp_head', 'feed_links_extra', 3);
   remove_action('wp_head', 'start_post_rel_link', 10, 0);
   remove_action('wp_head', 'parent_post_rel_link', 10, 0);
   remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);

REMOVE THE WORDPRESS UPDATE NOTIFICATION FOR ALL USERS EXCEPT SYSADMIN

// REMOVE THE WORDPRESS UPDATE NOTIFICATION FOR ALL USERS EXCEPT SYSADMIN
   global $user_login;
   get_currentuserinfo();
   if ($user_login !== "sysadmin") {
    add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
    add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
   }

CUSTOM ADMIN LOGOS:

// CUSTOM ADMIN LOGIN HEADER LOGO
   function my_custom_login_logo() {
    echo '<style type="text/css"> h1 a { background-image:url('.get_bloginfo('template_directory').'/images/excitesteps-login-logo.png) !important; } </style>';
   }
   add_action('login_head', 'my_custom_login_logo');



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



// CUSTOM ADMIN LOGIN HEADER LINK & ALT TEXT
   function change_wp_login_url() {
    echo bloginfo('url');
   }
   function change_wp_login_title() {
    echo get_option('blogname');
   }
   add_filter('login_headerurl', 'change_wp_login_url');
   add_filter('login_headertitle', 'change_wp_login_title');
share|improve this answer
    
whoa, great idea. –  ariefbayu Sep 6 '10 at 6:25
    
Really a great recipe .I won't forget it –  user391 Sep 6 '10 at 7:06
    
thanks guys - i would appreciate if you would vote it up –  NetConstructor.com Sep 6 '10 at 8:24
    
Am I need to set it up in every theme? Are there any possibilities to use it site wide rather than adding the code to each theme ? –  user391 Sep 6 '10 at 8:31
    
I add these records into the functions.php file for every theme. If your talking about running wordpress in multi-site mode I believe there is a way to create a functions.php file which applies to all themes but I am not positive. –  NetConstructor.com Sep 6 '10 at 8:41
show 6 more comments

"site-generator" is the div id assigned to the Powered by WordPress link in Twentyten, the default theme. Many other themes also contain a powered by WordPress link in the footer but might not assign the same div id as Twentyten.

To find the div id or class assigned to the the link in the footer of your theme you can view source from your browser and scroll down to the bottom of the page. When you find the link to WordPress.org look for the <div> tag that the wraps the link and take note of the id or class assigned to it.

Example from the Retromania Theme:

<div class="copy">&copy; Theme Preview 2009 | Created by <a href="http://www.jayhafling.com/">Jay Hafling</a>.</div>

                    <div class="copy_support">Powered by <a href="http://www.wordpress.org/">WordPress</a></div>

In this example the class "copy_support" is assigned to the powered by link so to remove it you would ass this to your css:

.copy_support {
display:none;
}

Since it is a class and not an id you use the . selector instead of the #

share|improve this answer
    
Done ! It worked well for me :) –  user391 Sep 6 '10 at 4:50
add comment

When doing it with CSS, make sure you are using firebug to see if the rule you are trying to apply is being applied to the element. It could be that there is a more specific rule, an equally specific but later defined rule, or even an inline rule overriding that your custom rule.

share|improve this answer
    
Thank you for your advice . I will keep it in mind . –  user391 Sep 6 '10 at 14:38
add comment

This plugin works pretty well http://wordpress.org/extend/plugins/white-label-cms/

share|improve this answer
    
Lone link is considered a poor answer (see FAQ) since it is meaningless by itself and target resource is not guaranteed to be alive in the future. Please try to include at least summary of information you are linking to. –  Rarst Mar 25 '13 at 20:05
add comment

protected by kaiser Mar 25 '13 at 19:18

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.