WordPress.org

Ready to get started?Download WordPress

Forums

Oxygen
[resolved] Duplicate Meta Description with Oxygen theme (3 posts)

  1. v androse
    Member
    Posted 1 year ago #

    Hi Guys,

    I used Oxygen theme for my website android.se.com. But I am getting duplicate meta description from the tags and single posts. For example the url http://android.se.com/death-moto-racer-hd-2 and the url by tag http://android.se.com/tag/death-moto-racer-hd-2 are giving the same meta description. Please let me know any one has faced this issue before. How do I resolve this issue. Which file should I edit ?

  2. v androse
    Member
    Posted 1 year ago #

    Found the solution my self,

    Edited the file wp-content\themes\oxygen\library\functions\context.php
    and altered the taxonomy section, Like below.

    /* If viewing a taxonomy term archive. */
    		if ( is_category() || is_tag() || is_tax() ) {
    			$doctitle = single_term_title( '', false );
    			$doctitle = "$doctitle : Tag "; /* Extra Entry  */
    		}

    Now both the above given URLs http://android.se.com/death-moto-racer-hd-2 and the url by tag http://android.se.com/tag/death-moto-racer-hd-2 are giving separate title as well as description.

    By, V Androse.
    Find me on Google +

  3. Griden
    Member
    Theme Author

    Posted 1 year ago #

    I don't think hardcoding that "Tag" is an universally good solution - check the condition on the previous line. And I doubt it would make any difference for Google. If you want fine control over these things, you should use a SEO plugin - http://wordpress.org/extend/plugins/all-in-one-seo-pack/ or http://wordpress.org/extend/plugins/wordpress-seo/.

    And a plugin would ensure your settings are future proof. Because the next Oxygen update will overwrite/destroy your customisation.

    PS: That function hybrid_document_title() has a filter hook by the way, and it's possible to customise its output in a proper/safe way. Here's a tutorial on changing output via filter hooks: http://codex.wordpress.org/Function_Reference/add_filter

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic