Hi-
My SEO team wants me to remove the links to the WP category pages (not the actual words, just the link) on both the posts and the blog post excerpts embedded in my pages so that I don’t have duplicate content because we are not using the category pages to display posts. Where can I find the code to remove the links while keeping the actual names of the categories. (February 26, 2014 / in Announcements).
Great job on the theme, it is super versatile.
thanks!
-D
Bump, please help!
-D
Hi!
Edit includes > loop-index.php, find this code on line 151:
if(!in_array($taxonomy, $excluded_taxonomies))
{
$cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
}
Replace it with:
if(!in_array($taxonomy, $excluded_taxonomies))
{
$cats .= strip_tags(get_the_term_list($the_id, $taxonomy, '', ', ','')).' ';
}
Cheers!
Ismael
That did it! Thanks so much for all your help!!! I also did the same thing with loop-search.php for the search results.
-D