October 21, 2009
I am building a store using the Shopp plugin, and I noticed that there are possibilities for duplicate content issues:
- A product can be accessed both by
/shop/{productID} and /shop/{product-slug}
- A tag can be accessed using
/shop/?shopp_tag={tag-uri} and /shop/tag/{tag-slug}
- A tag can be accessed using
/shop/?shopp_category={category-id} and /shop/{category-uri}
Should Google somehow find it’s way into indexing these pages, the value of the identical indexed pages may drop. Canonical tags aim to remedy this situation, and are implemented by the hugely popular and awesome All in One SEO Pack plugin (see my other SEO tips regarding AIOSEO Pack plugin).
The Shopp plugin does not feature canonical tag support, so here’s a modification you can make that will add support for it without changing any core files in All in One SEO Pack, or in Shopp. Read more&hellip
Read the full article →
October 2, 2009
I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as:
<img class="" src="http://www.example.com/imagescaler/generated-image.jpg" alt="Example" width="258" height="234" imagescaler="http://www.example.com/imagescaler/original-image.jpg" />
To strip imagescaler’s imagescaler attribute, add the following into your functions.php file:
add_filter('the_content', 'strip_imagescaler');
function strip_imagescaler($content) {
$content = preg_replace('/imagescaler="(.*?)".?/s','', $content);
return $content;
}
Read the full article →
WordPress Comment Form 404 Error – Now Fixed!
December 9, 2009Disabling the Cookies for Comments plugin broke the comments form.
On the recommendation of Matt Cutts, I added the Cookies for Comments plugin to this blog, and also added their recommended .htaccess modifications:
RewriteCond %{HTTP_COOKIE} !^.*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.*$ RewriteRule ^wp-comments-post.php - [F,L]When I realized that Cookies for Comments was slowing down my blog considerably, I disabled the plugin, but did not think to remove the
.htaccessrewrite rule. The remaining.htaccessrules broke the comments on this blog (for two weeks now, could it be!?). Read more&hellip