Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Adding a logo in site title

I am currently using the sumone text which doesn't let you add a logo to the site title. Is there a way to override this by code? Or any other way as l want a logo to appear right infront of my site title

2 Answers

Have you looked at your header.php file? You could probably do something along the lines of:

<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Logo">

This assumes you have a directory in your theme folder called images and an image called logo.png, you can swap that out to suit your needs. If you're comfortable with CSS you could also do text replacement with a background image as well.

Thanks