Home> CMS Tutorial> WordPress> body text

How to change wordpress theme logo

藏色散人
Release: 2019-07-12 09:19:21
Original
4464 people have browsed it

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

How to change wordpress theme logo

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’);”));
Copy after login

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’);”));
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!