Support Forum

Problem with Page/Browser Title

19 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Are you using any other SEO plugins that are forcing some sort of page title component? Or even, sometimes I believe, the Wp theme may have such an option…

RG Robb G
Robb G
Member

Hmm, I’m not using any SEO components nor does my theme have any sort of options of that nature.

MP Mr Papa
Mr Papa
Member

its your wp theme…  BrandonC downloaded and it researched the header.php file which is outputting all that extra stuff…

this is what its doing:

    <title><?php
            /*Print the <title> tag based on what is being viewed.*/
            global $page, $paged;
            wp_title( '|', true, 'right' );
            // Add the blog name.
            bloginfo( 'name' );
            // Add the blog description for the home/front page.
            $site_description = get_bloginfo( 'description', 'display' );
            if ( $site_description && ( is_home() || is_front_page() ) )
                    echo " | $site_description";
            // Add a page number if necessary:
            if ( $paged >= 2 || $page >= 2 )
                    echo ' | ' . sprintf( __( 'Page %s', 'adventurejournal'), max( $paged, $page ) );
    ?></title>  

no real way for a plugin to deal with that… Brandon’s suggestion was to change it to:

<title><?php if (is_home()) { bloginfo('name'); ?><?php } elseif (is_category() || is_page() ||is_single()) { ?> <?php } ?><?php wp_title(''); ?></title>
RG Robb G
Robb G
Member

Oh ok. So that’s the problem. Thanks guys for researching that. This gives me some insight on what I should do next.

MP Mr Papa
Mr Papa
Member

so yeah… sometimes nothing we (plugins and themes) can do to play nice with each other when one or the other does some heavy customization…

you could add a check there for the forum page and only do that on non forum pages… then let the forum control it on forum pages…