Tuesday, May 7, 2013

Wordpress Edit Blog Tagline by Your theme code

Our Wordpress blog Have title and under that a tagline is there ,which is " just anothe Wordpress site". We have to change it for our convince. And you can edit it through the php code. Here is a sample code to update the tagline as my convince. Many theme developer are needed to edit this tagline through their theme function code.

Add the few following lines of code to change your WP blog tagline.

function kv_change_defaults() {
update_option('blogdescription', 'my tagline Works here', '', 'true');
}
add_filter('switch_theme', 'kv_change_defaults');



No comments:

Post a Comment