How to change the wordpress theme logo
Here we only introduce how to change the logo of some themes. Many theme settings now have logo settings
Methods/Steps
The first method:
You only need to replace the originally called logo picture with your own logo picture. The specific steps are as follows:
Prepare a picture named logo-login.gif with a transparent background and a size of 310px*70px
in the wp-admin/images folder in the wordpress root directory Find the logo-login.gif file,
overwrite it with the logo-login.gif picture you prepared, and
you can access the background login interface, the icon has been changed.
Advantages: Simple, fast, suitable for novices;
Disadvantages: You have to modify it again when updating and upgrading the version.
The second method
Modify in functions.php, the specific steps are as follows:
In the theme function file functions.php, add the following line , to modify the link address:
add_filter(‘login_headerurl’, create_function(false,’return get_bloginfo(‘siteurl’);”));
In the theme function file functions.php, add the following line to modify the title prompt of the link address:
add_filter(‘login_headertitle’, create_function(false,”return get_bloginfo(‘description’);”));
In the theme function file functions.php, Add the following content to modify the link image displayed controlled by CSS:
function nowspark_login_head() { echo ‘’;} add_action(“login_head”, “nowspark_login_head”); //modify the background image
Just modify the link in the url to your own link!
Advantages: There is no need to change the updated version. When changing the picture, the link address and title prompt are also modified at the same time.
For more WordPress technical articles, please visitWordPress Tutorialcolumn!
The above is the detailed content of How to change wordpress theme logo. For more information, please follow other related articles on the PHP Chinese website!