homepage Welcome to WebmasterWorld Guest from 54.205.168.88
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Yoast Wordpress SEO - How to change rel=canonical on a single post
wilkinsj




msg:4694177
 8:51 pm on Aug 8, 2014 (gmt 0)

I need to change the rel=canonical on a single post, so that the link points to a URL on a different domain. The reason for this is that I have duplicate content on 2 websites, and I would like one of them to be the 'original' source for SEO purposes.

I think I need to add something to functions.php to select the page number and edit wpseo_canonical, but everything I have tried so far breaks my site. Any suggestions would be much appreciated!

 

travelin cat




msg:4694178
 9:04 pm on Aug 8, 2014 (gmt 0)

Go to the post you want to change, locate the "Wordpress SEO By Yoast" area, click on the "Advanced" tab and scroll down to "Canonical URL:"

I believe that is what you are looking for.

wilkinsj




msg:4694179
 9:13 pm on Aug 8, 2014 (gmt 0)

Can't believe I missed that... Thanks!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved