Comment on SEO Super Comments WordPress Plugin by SEO Dave.

WordPress Blog SEO Comments For users of the original Prelovac SEO Super Comments Plugin (version 0.7.1) you will find your super comments pages will NOT be indexed by Google (this is not an issue for the Stallion SEO Super Comments version packaged with the Stallion WordPress SEO Theme or Stallion Responsive). This is because a canonical URL is added to the head of the super comments which tells Google to redirect any benefit and indexing to the original post (only the original post is indexed).

Here’s a fix for non-Stallion WordPress SEO theme users (do not do this with Stallion, it’s already built in).

Make a copy of header.php and call it header2.php
Make a copy of single.php and call it single2.php

Add

function get_header2(){include (get_template_directory() . "/header2.php");}

To your function.php file.

Edit single2.php and change

get_header();

to

get_header2();

Edit header2.php and ABOVE (must be above) the line

<?php wp_head(); ?>

Add

<?php remove_action('wp_head', 'rel_canonical');?>

Go to the Prelovac SEO Super Comments options page and change the “Template file in use” to single2.php

If everything works as it should when you view source of a super comments page it will NOT include a canonical URL.

For example the original post (Stallion SEO Super Comments Plugin) for this super comment (if you are on the super comments page) would have the canonical URL code:

<link rel='canonical' href='https://stallion-theme.co.uk/stallion-seo-super-comments-plugin/' />

If you view source of a super comment and see code in the head that looks like the above something went wrong.

Some of the WordPress SEO plugins that write their own canonical URL code are not going to work with the Prelovac SEO Super Comments WordPress Plugin.

This is a small thanks to Vladimir Prelovac the author of the original Prelovac SEO Super Comments WordPress Plugin for creating such a useful plugin, a derivative of which I use on all my WordPress sites and thousands of Stallion SEO theme users use on theirs.

David

Update: not a Stallion theme user, I’ve made a stand alone updated version of the SEO super comments plugin.