ThemeShaper Forums » Thematic

Revision 296 - Fixes, changes and something new

(2 posts)
  • Started 9 years ago by Chris
  • Latest reply from Chris
  • This topic is not a support question


  1. Issue 21: I implemented the following code for creating the robots-tag:

    <?php if((is_home() && ($paged < 2 )) || is_front_page() || is_single() || is_page()
    || is_attachment()){
        echo '<meta name="robots" content="index,follow" />';
    } elseif (is_search()) {
        echo '<meta name="robots" content="noindex,nofollow" />';
    } else {
        echo '<meta name="robots" content="noindex,follow" />';

    Issue 8: The above mentioned changes should prevent indexing duplicate content.

    Issue 24: Combining tags with ',' or '+' like will now have a proper title like 'Tag-Archiv: wordpress + iphone'

    Now the new stuff:

    In header.php one hook will now create the HEAD. This is done by using a lot of actions:

    add_action('thematic_header', 'thematic_header_create_head', 1);
    add_action('thematic_header', 'thematic_header_create_title', 2);
    add_action('thematic_header', 'thematic_header_create_contenttype', 3);
    add_action('thematic_header', 'thematic_header_create_description', 4);
    add_action('thematic_header', 'thematic_header_create_robots', 5);
    add_action('thematic_header', 'thematic_header_create_stylesheet', 6);
    add_action('thematic_header', 'thematic_header_create_rss', 7);
    add_action('thematic_header', 'thematic_header_create_pingback', 8);
    add_action('thematic_header', 'thematic_header_create_commentreply', 9);

    If you're running one of the SEO packages you might want to remove the standard description and the standard robots settings.

    This can be done in your child themes functions.php. Just add the folowing function:

    function remove_somestuff () {
         remove_action('thematic_header', 'thematic_header_create_description', 4);
         remove_action('thematic_header', 'thematic_header_create_robots', 5);

    You want to replace the code generating the title with your own code .. just remove and replace it in your functions.php

    Please comment or report bugs!



    Posted 9 years ago #
  2. Some more fine tuning for the page title in REV 298

    Posted 9 years ago #

RSS feed for this topic


You must log in to post.