Hello Friends,
This post explains how to add your own logo in wordpress blog. WP is one of the popular thing among the bloggers. However, when we use WP for blogging it comes with some default settings and configurations, among them one of is to set the name or header. By default the header contains the name of the blog that we set in the dashboard settings.
However we can add our customized logo instead of displaying the site name or blog name. There are some settings and configurations needs to be changed in the existing WP code.
For doing so, one must be the administrator of the blog or must have the editing default settings rights. Once we are into wp-admin there goto the “Appearance” tab, under that click on the “Editor” link. Now the editor box will open in edit mode, there you can select the file to be edited an modified.
The file of our interest is the Header.php file, click on the file and search for the code snippet which we have to replace, the existing code will look something like:~
1 2 3 4 5 6 7 8 |
<h1 class="sitename"> <a href="?php echo get_option('home');?"> <!--?php bloginfo('name'); ?--> </a> </h1> <h2 class="sitedesc"> <!--?php bloginfo('description'); ?--> </h2> |
Just replace this code with the following:
1 2 3 4 5 6 7 |
<h1 class="sitename"> <a href="?php echo get_option('home'); ?"> <img src="../uploads/logo.png" alt="" /></a> </h1> <h2 class="sitedesc"> <!--?php bloginfo('description'); ?--> </h2> |
Check the line no. 3 from the replaced code, here we have just replaced the blog name with the image url/source. This is the only changes we have to do, to show our logo on the site header. However the source of your logo image can be anything either from your uploaded folder of the blog or any other url or external link.
Hope this will help you.
Regards,
Nikhil Naoghare
Merry Christmas!
i will try this
I agree, Best Regards Florin
It is a great article. This web site has lots of advantage. I found several interesting things from this site. It can help me many away. So thanks for sharing this info. But I can’t understand the last two paragraph, will you mind explain it ?