Welcome to the Treehouse Community
Looking to learn something new?
Adding a logo png, dynamically, to your wordpress
So we are able to change our blog name in the admin but what if we want to use a logo, an emblem logo image? How can we code it so that you'll be able to change it any time you want on the wordpress admin.
This is what I did. I added a custom field named logo and created a field group with url(Iwant it to go to homepage) and image (for the logo).
But the image doesn't display, but It allows me to click and when I click it takes me to home page so I did something right. How can I fully make this work? Any suggestions for those who want to add a logo to our blogs.
Below is the codes I used
<div class="container clearfix"> <header> <div class="grid_6 omega none"> <a href="<?php the_permalink(); ?>"> img src="<?php the_field( 'image-logo' ); ?>"> </div>