IT NEW CODE gives to rename a theme as your project or website name.
There are some steps to follow you.
1> Add following code in "
function.php" file.
----------------------------------------
//
// To hide WP header identity
//
remove_action('wp_head', 'wp_generator');
//
//To Change Name Howdy in wp Admin top right Corner
//
function change_howdy($translated, $text, $domain) {
if (!is_admin() || 'default' != $domain)
return $translated;
if (false !== strpos($translated, 'Howdy'))
return str_replace('Howdy', 'Welcome', $translated);
return $translated;
}
add_filter('gettext', 'change_howdy', 10, 3);
//
// Admin Side CSS
//
function my_custom_css() {
echo '<style>
#wp-admin-bar-wp-logo ,#wpfooter, #dashboard_primary, #wp-version-message, .welcome-panel h2, .welcome-panel .about-description, #adminmenu .wp-has-current-submenu .wp-submenu {
display: none;
}
</style>';
}
add_action('admin_head', 'my_custom_css');
2> In "
style.css" file following like code there.
----------------------------------------
/*
Theme Name: Twenty Fifteen
Theme URI: https://wordpress.org/themes/twentyfifteen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version
: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: twentyfifteen
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
In Above code
Bold Letter value must be change. Others are optional.
Must Change
Theme Name, Theme URI, Author, Author URI value.
For more Interesting, Useful Article & codes visit IT New Code.
IT NEW CODE always help you with new
Developing Code.