Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Revision 296 - Fixes, changes and something new « ThemeShaper Forums

ThemeShaper Forums » Thematic

Revision 296 - Fixes, changes and something new

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

Tags:


  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Chris

    Moderator

    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 http://mysite.com/tag/tag1+tag2/ 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);
    }
    add_action('init','remove_somestuff);

    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!

    Thanks,

    Chris

    Posted 6 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Chris

    Moderator

    Some more fine tuning for the page title in REV 298

    Posted 6 years ago #

RSS feed for this topic

Reply

You must log in to post.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183