ThemeShaper Forums » Thematic

[closed]

Double meta description after platinum seo pack

(9 posts)
  • Started 14 years ago by gelay
  • Latest reply from joperron
  • This topic is resolved
  1. I am using platinum seo pack. After this plugin is activated, the source code of the site shows 2 meta descriptions: one is the default description, and the other is the platinum seo pack description.

    How can I remove the default description? Is there anything else I should do for optimum SEO when using platinum seo pack?

    Posted 14 years ago #
  2. Hey, sorry for the short answer (iPhone only) .. create a filter that returns FALSE to thematic_show_description(). You might want to do the same with thematic_show_robots(). Leave a note if you need more details, will answer later today.
    Cheers,
    Chris

    Posted 14 years ago #
  3. yes please, more help.

    Posted 14 years ago #
  4. Hey,

    before you edit your child theme's functions.php get the latest SVN version .. just fixed a bug with the two mentioned functions.

    Add the following code to your child theme's functions.php:

    function remove_description($display) {
    	$display = FALSE;
    	return $display;
    }
    add_filter('thematic_show_description', 'remove_description');
    
    function remove_robots($display) {
    	$display = FALSE;
    	return $display;
    }
    add_filter('thematic_show_robots', 'remove_robots');

    The first filter will switch off the meta tag description, the second one will switch off the meta tag robots.

    Tested with the SVN version 440.

    Cheers,

    Chris

    Posted 14 years ago #
  5. Thanks. Works beautifully.

    Posted 14 years ago #
  6. Perfect, thank you! This plugin, combined with the code above, is exactly what I've been looking for.

    Posted 12 years ago #
  7. This snippet is key. Thanks!

    edit: actually it doesn't work... :( what gives?

    Posted 12 years ago #
  8. Even using those functions the description meta is still generated if I have an excerpt.

    Posted 12 years ago #
  9. Never mind. I'm a bit brain dead I think!

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.