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

Business SEO Basics Better SEO Through Code Canonicalization

Austin Harms
Austin Harms
8,680 Points

How would you set the canonical link in a Wordpress site?

Since Wordpress themes are written in PHP and the HTML is then generated, how would you add the canonical link to the duplicate page? Would you have to modify one of the PHP files?

1 Answer

I use the Yoast SEO WordPress plugin and let it take care of that, make it very easy and allows you to do a lot of beneficial SEO after installing the plugin, very easy to use and there are guides on Google that will show you how to configure it as well.

Thiago Nogueira
Thiago Nogueira
8,411 Points

Thanks for sharing this information, I am going to look into it! I have been using WP and wondered how i could improve my SEO on it. :)

I think you will like it, I use it on pretty much all WordPress sites, it makes SEO much easier.