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

Joe Li
Joe Li
8,104 Points

How to dynamically add logo to wordpress site?

Hey guys,

Does anyone know the best way to dynamically add a logo to a wordpress site?

I have a logo in my header and footer.

Is there a simple hook like bloginfo('logo')?

Thanks,

Joe

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

We cover how to do this in our next course on the Customizer API, but it won't be out for a couple weeks.

You could try using the custom header option that WP offers and use it just for a logo instead of a whole header, but that's a bit of a hack approach.

Joe Li
Joe Li
8,104 Points

Cool, thanks for getting back to me Zac, I'll statically add it for now. Look forward to the Customiser API course.

Thanks,

Joe