How to Remove the Built in SEO Functions
  • cbavotacbavota November 2010

    If you are using an SEO plugin, it will conflict with the way my themes are built due to some dynamic SEO functions that are built into the header.php file. You can easily remove them by just deleting these lines:

    <?php if((is_home() && ($paged < 2 )) || is_single() || is_page()) { echo '<meta name="robots" content="index,follow" />'; } else { echo '<meta name="robots" content="noindex,follow" />'; } ?>
     
    <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <meta name="description" content="<?php metaDesc(); ?>" />
    <?php csv_tags(); ?>
    <?php endwhile; endif; elseif(is_home()) : ?>
    <meta name="description" content="<?php if(theme_option('site_description')) { echo trim(stripslashes(theme_option('site_description'))); } else { bloginfo('description'); } ?>" />
    <meta name="keywords" content="<?php if(theme_option('keywords')) { echo trim(stripslashes(theme_option('keywords'))); } else { echo 'wordpress,c.bavota,feed me seymour,custom theme,themes.bavotasan.com,premium themes'; } ?>" />
    <?php endif; ?>

  • JayJay January 2011

    Can I delete that functions and rewrite some metas in the header.php such as title and description and robots. And after that use a seo plug in for each page or post.

    I mean, If I remove that code and I rewrite with other seo plug-in titles & descriptions by post and page google would catch up my metas. making differences from general content and specific one?

    Thanks in advance

  • cbavotacbavota February 2011

    Sure.

  • JayJay February 2011

    Made it! Thanks

  • JayJay February 2011

    Upps... I have removed the code but in the old title and description still being the same as before removing. I wanted to add those metas do you have any suggestion with a special seo plug-in?
    view-source:http://www.periodismoindependiente.es/titulare-noticias-de-america-latina/

    Should i delete this:

    <?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } ?>

  • cbavotacbavota February 2011

    If the SEO plugin you are using adds the page title, you can delete that line.

  • JayJay February 2011

    Hi, One more question about this staff,

    There are some characters that are appering with strange symbols when Google shows its results. Words in Spanish like "más" are appering as más. Do you know why is this happen and some way to fix it?

    I think that would be a great advance in seo to customize each post and page by itself. (Title | Description)

    Thanks in advance, great theme!

  • cbavotacbavota February 2011

    Magazine Premium's next release will have this option.

  • JayJay February 2011

    And what about the strange characters? such as más instead of más

  • cbavotacbavota February 2011

    The function currently converts foreign characters to HTML entities. That is the problem. It should be resolved with the next release, which removes this.

  • JayJay March 2011

    The new functions are great... But one question. If i don't rewrite title and description in the old posts will google to catch the the info in other way just how it work before or i should change old the title and descriptions...?

    Thanks in advance

  • cbavotacbavota March 2011

    The old functionality is still there by default, so you don't have to worry.

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged