Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress SEO for WordPress Enhancing the SEO of a WordPress Theme Headers Best Practices for SEO in WordPress

Penny Badowska
Penny Badowska
1,757 Points

Code to switch between H1 and P doesn't work

I have tried using the code from twentyfifteen in my website to change the Site Title from H1 on the Home Page to P on other pages, but it remains P on all pages.

Please can you detail exactly how to do this again?

Patrick Koch
Patrick Koch
34,236 Points

I didnt went further in it but I thinks its cause is_front_page() && is_home_page() ), on my site I just used the is_front_page() function because I dont have a homepage, and it worked out fine.

g patrick