Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #229860

    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

    #230363

    Bump, please help!
    -D

    #230497

    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

    #230843

    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

    #230925

    Hi!

    Glad it worked. :)

    Cheers!
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.