jbQ Media

Web Design, SEO Services and Media Production | Yonkers | Westchester | NY

(917) 861-1242
  • Home
  • About
    • Why Us
    • Jon Burr | Site Designer
    • Our Rates
    • Contact
    • Our Location
    • News via Twitter
  • Our Services
  • Photography
  • Articles
  • Reviews
  • Website Portfolio Gallery
You are here: Home / Services / Consulting / Edit Canonical Tags per post with Yoast installed | Focus Rank on Landing Pages | Genesis Archive Page

Edit Canonical Tags per post with Yoast installed | Focus Rank on Landing Pages | Genesis Archive Page

October 14, 2014 By Jon Burr 1 Comment

#canonical #duplicate_content

Don’t dilute your link juice and page rank.

What if you want to display your best post for a category at the top of a Geneses category archive page to make a nice, strong landing page?

Search engines will get confused, not knowing which one to serve. If the rank is split between the two, neither may appear. The entire post will appear in two places on your site. Google, Bing etc won’t know which one to index. It will weaken the rank of both.

Moz has several great articles on Duplicate Content and the use of canonical tags to resolve the problem:

http://moz.com/blog/rel-confused-answers-to-your-rel-canonical-questions

http://moz.com/blog/canonical-url-tag-the-most-important-advancement-in-seo-practices-since-sitemaps

And, Google’s take on frequent mistakes and misuse – (this article is not about one of them!)

http://googlewebmastercentral.blogspot.com/2013/04/5-common-mistakes-with-relcanonical.html

https://support.google.com/webmasters/answer/139066?hl=en

And, Google’s Matt Cutts, chief of WebSpam, on their use:

https://www.mattcutts.com/blog/canonical-link-tag/

But, say you want to show the whole post, as well as excerpts and featured images from all the other posts in the category. A landing page like this can rank well, because all the excerpts are adding keywords and authority to it… if you can define which is the best source of the original content.

Create a landing page with the Genesis Archive template

The landing pages I’m building for several clients use the Genesis Category Archive template.

To make these category archive pages into landing pages, I’ve installed the Genesis Sandbox Featured Content Widget (GSFW) plugin, the Genesis Widgetized Archive (GWA) plugin, and the Dynamic Widgets (DW) plugin. I have Yoast WordPress SEO installed on all sites (always).

The setup begins with the creation of a page assigned to the Genesis Archive template, and given the title of the category to be displayed.

I use one instance of GSFW in the first Archive widget to pull the whole featured post using “include” and the post id. A second instance pulls the loop for the category, using excerpts and featured images, with a one-half column class (optional).

These widgets are constrained to the particular page only using the DW plugin – otherwise they’ll display on all Genesis archive pages.

This works well and makes cool landing pages. The other Archive widgets (there are 3 by default) can display ads or other items on these landing pages.

Refocus Content with Canonical Tags

The source of the content should resolve to the page with the most links and relevant content – which would be the new landing page. The featured post plus all of the excerpts will be more powerful than any particular post. Create a canonical tag on the featured post, pointing to the new landing page.

With Yoast SEO installed, there’s a problem to overcome in rewriting canonical tags, which is that Yoast writes them automatically by default. They have to be disabled on the posts you’re going to feature.

Step One

Remove the canonical tags on the posts you’re going to feature.

How?

Put the following php into your functions.php of your child theme, replacing ### with the post id’s to which you want to add your custom canonicals.

[pastacode lang=”php” message=”Disable Yoast Canonical” highlight=”” provider=”manual”]

//* Stop Yoast from writing canonical tags on specific posts
function wpseo_canonical_exclude( $canonical ) {
		global $post;
		if ( $post->ID == ### ||$post->ID == ### ||$post->ID == ##) {
    		$canonical = false;
    }
	return $canonical;
}
add_filter( 'wpseo_canonical', 'wpseo_canonical_exclude' );

[/pastacode]

(Source: WordPress.com support forum, with a modification for the series)

Step 2

In the post editor, scroll down to find the field “Scripts” (a feature of Genesis) and add your desired canonical tag there.

[pastacode lang=”html” message=”Canonical Link” highlight=”” provider=”manual”]

					

[/pastacode]

This post has been edited…. the original version suggested using the “Add to Head” WordPress plugin, but thanks to Tom Hickey’s comment on this post on Google+, I found you don’t need a plugin to add your custom canonical tag in Genesis.

This does the trick.

Happy ranking!

Related Posts:

  • Connecting Calendly to Zoom Connecting Calendly to Zoom is confusing to do but powerful…
  • Upgrading an old HTML site with a WordPress blog to… Create a new WordPress site from a mixed HTML/Wordpress blog…
  • WordPress 5.0 and Gutenberg - What it Means for… For a gradual transition to Gutenberg, install the WordPress Classic…
  • Privacy Policy Who we are Our website address is: https://jbq.net. What personal…
  • Keeping up with Google’s New Features - SSL, AMP,… Secure Encrypted Browsing with SSL For awhile Google has been…
  • Migrating a WordPress Site if Wordfence is… Duplicator will fail if Wordfence is installed. Other plugins and…

Filed Under: Consulting, SEO, Useful Tools Tagged With: #canonical, #duplicate

Site Search

Our Services

  • WordPress
  • SEO
  • Strategy
  • Consulting
  • Website Design
  • Useful Tools
  • Tutorials
  • Editorial

Comments

  1. James says

    April 12, 2018 at 5:47 am

    Jon, great article! I think not everyone understands the importance of canonical tags. To eliminate duplicate content we can use 301 redirects or canonical tags. In general, it is best to use 301 redirects, but if it is quite difficult, you can use the attribute rel = “canonical”. In my blog – sitechecker.pro/canonical-url/ I described all the mistakes everyone can do in order to avoid them. Hope you’ll find it useful!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Contact us now! :)

Why delay? Initial consultation is on the house!

call (917) 861-1242

    Your First Name (required)

    Your Last Name (required)

    Your Email (required)
    (please double-check it!)

    Subject
    Contact from jbQ Media Website

    Your Message

    *required


    Subscribe me your mailing list

    Human?*

    • Production
    • WordPress Sites
    • Strategy
    • SEO
    • Websites
    • Editorial
    • Contact
    • Terms of Service
    • Cookie policy

    © 2014 jbQ Media

    Google+