Double Titel how to get rid?

15 replies
  • WEB DESIGN
  • |
Basically I'm using the free magazine theme for wordpress. Having my keyword in h1 in the beginning, but theres always the title above it.
Its double the keyword. How can I get rid of this? anyone knows?

Best wishes!
#double #rid #titel
  • Profile picture of the author Randize
    Can you post your site her normahl so we can take a look. Not all wordpress theme is the same, that's the problem.
    {{ DiscussionBoard.errors[6558164].message }}
  • Profile picture of the author xtrapunch
    Go to Appearance->Editor and open the header.php file. Replace the wp_title tag with this one:
    PHP Code:
    <? php wp_title(''); ?>
    Read: Function Reference/wp title « WordPress Codex
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[6558174].message }}
    • Profile picture of the author normahl
      Thanks for your help! But doesn't work. That's the code:

      <title>< ?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } if ( $paged > 0 ) { echo (' | Page '); echo $paged; } ?></title>

      I am using
      Magazine Basic 2.7.7 Theme
      {{ DiscussionBoard.errors[6558209].message }}
  • Profile picture of the author Randize
    That's the code within header tag. <head></head>

    Can you post the code after the <body> tag inside header.php?
    {{ DiscussionBoard.errors[6558234].message }}
  • Profile picture of the author normahl
    <div id="header">
    <?php
    $headeralign = pbt_theme_option('logo_location');
    if($headeralign=="fl") $adfloat = ' class="fr"';
    if($headeralign=="fr") $adfloat = ' class="fl"';
    if($headeralign=="aligncenter") $adfloat = ' class="aligncenter"';
    $float = ' class="'.$headeralign.'"';
    ?>
    <?php if (pbt_theme_option('user_login') != "2") { ?>
    <div id="login">
    <?php
    global $user_identity, $user_level;
    if (is_user_logged_in()) { ?>
    <ul>
    <li><span style="float:left;"><?php _e("Logged in as:", "magazine-basic"); ?><strong> <?php echo $user_identity ?></strong></span></li>
    <li><a href="<?php echo admin_url(); ?>"><?php _e("Control Panel", "magazine-basic"); ?></a></li>
    <?php if ( $user_level >= 1 ) { ?>
    <li class="dot"><a href="<?php echo admin_url('post-new.php'); ?>"><?php _e("Write", "magazine-basic"); ?></a></li>
    <?php } ?>
    <li class="dot"><a href="<?php echo admin_url('profile.php'); ?>"><?php _e("Profile", "magazine-basic"); ?></a></li>
    <li class="dot"><a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log Out', "magazine-basic") ?>"><?php _e('Log Out', "magazine-basic"); ?></a></li>
    </ul>
    <?php
    } else {
    echo '<ul>';
    echo '<li><a href="'.wp_login_url( get_permalink() ).'">'.__('Log In', "magazine-basic").'</a></li>';
    if (get_option('users_can_register')) { ?>
    <li class="dot"><a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register', "magazine-basic") ?></a> </li>

    <?php
    }
    echo "</ul>";
    } ?>
    </div>
    <?php } ?>
    <?php if(pbt_theme_option('header_ad') == 'on') { ?>
    <?php if(pbt_theme_option('headerad_img')) { ?>
    <div id="headerad"<?php echo $adfloat; ?>>
    <a href="<?php echo pbt_theme_option('headerad_link'); ?>"><img src="<?php echo pbt_theme_option('headerad_img'); ?>" alt="" /></a>
    </div>
    <?php } else { ?>
    <div id="headerad"<?php echo $adfloat; ?>>
    <a href="http://themes.bavotasan.com"><img src="<?php echo THEME_URL; ?>/images/topbanner.png" alt="Themes by bavotasan.com" /></a>
    </div>
    <?php } ?>
    <?php } ?>
    <?php if(pbt_theme_option('logo_header')) { ?>
    <a href="<?php echo home_url(); ?>/" class="headerimage"><img src="<?php echo pbt_theme_option('logo_header'); ?>" alt="<?php bloginfo('name'); ?>"<?php echo $float; ?> /></a>
    <?php } else { ?>
    <div id="title"<?php echo $float; ?>>
    <?php if(is_singular()) echo '<h2>'; else echo '<h1>'; ?><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a> <?php if(is_singular()) echo '</h2>'; else echo '</h1>'; ?>
    </div>
    <?php } ?>
    <div id="description"<?php echo $float; ?>>
    <?php if(pbt_theme_option('tag_line')!=2) bloginfo('description'); ?>
    </div>
    <?php
    if(function_exists('wp_nav_menu')) {
    wp_nav_menu( array( 'theme_location' => 'main', 'menu_class' => 'sf-menu', 'sort_column' => 'menu_order', 'container_class' => 'main-navigation', 'fallback_cb' => 'pbt_display_home' ) );
    wp_nav_menu( array( 'theme_location' => 'sub', 'menu_class' => 'sf-menu', 'sort_column' => 'menu_order', 'container_class' => 'sub-navigation', 'fallback_cb' => 'display_none' ) );
    } else {
    echo '<div class="main-navigation"><ul class="sf-menu"><li><a href="'.get_bloginfo('url').'">Home</a></li>';
    wp_list_categories('title_li=');
    echo '</ul></div>';
    }
    ?>

    </div>
    <!-- end header -->
    {{ DiscussionBoard.errors[6558252].message }}
  • Profile picture of the author Randize
    Find and try replace:
    PHP Code:
    alt="<?php bloginfo('name'); ?>"<?php echo ; ?>
    to this:
    PHP Code:
    <?php echo ; ?>
    If it still doesn't pm me your site and let me take a look at it. There are a few if statements that could cause the problem.
    {{ DiscussionBoard.errors[6558353].message }}
  • Profile picture of the author normahl
    lol, tried it .Now I have to reupload the theme again, cause my page isnt working anymore. Damn it.
    {{ DiscussionBoard.errors[6558406].message }}
  • Profile picture of the author Randize
    I realize that the <?php echo $float; ?> is reverted to
    PHP Code:
    <?php echo ; ?>
    as above.

    What I intended to do is removing the 'alt' attribute that could turned into a link when you don't have the header image.
    {{ DiscussionBoard.errors[6558426].message }}
  • Profile picture of the author Randize
    just checked you site, it's the double "Eingewachsene Haare" right?


    I believe the code lies in index.php not header.php can you pm me your index.php?
    {{ DiscussionBoard.errors[6558444].message }}
  • Profile picture of the author Randize
    Originally Posted by normahl

    hey there!
    thats index:

    <?php get_header(); ?>
    <?php get_template_part( 'loop', 'index' ); ?>
    <?php get_footer(); ?>

    Nothign more.
    I see so your index.php is fetching from other parts. You may have loop-index.php, you can post the code here or pm me.
    {{ DiscussionBoard.errors[6558790].message }}
  • Profile picture of the author xtrapunch
    Replace this...
    PHP Code:
    <title>< ?php wp_title(''); ?><?php if(wp_title('',  false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) {  echo ' | 'bloginfo('description'); } if (  > ) { echo (' |  Page '); echo ; } ?></title>
    ...with this:
    PHP Code:
    <title>< ?php wp_title(''); ?></title> 
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[6558831].message }}
    • Profile picture of the author normahl
      Done, but still the same problem =(
      {{ DiscussionBoard.errors[6558940].message }}
  • Profile picture of the author Randize
    normahl the title tag only changes the title on your browser tab or toolbar (the top area of your browser) Title doesn't use any h1 tag

    I can't help you solve the problem if you don't send me loop-index.php (or loop.php if you don't have that)
    {{ DiscussionBoard.errors[6559013].message }}
  • Profile picture of the author Randize
    Try removing this line of code around line 106, see what happens after removing that.
    PHP Code:
    <h1><?php the_title(); ?></h1>
    Are both of the title gone, or just one.

    P/S. I suspect you might have added the title inside your post/page. If so simply remove the title from your post or page.
    {{ DiscussionBoard.errors[6559844].message }}
  • Profile picture of the author wemakelogo
    before you do anything, are you using Yoast Wordpress SEO plugin?
    {{ DiscussionBoard.errors[6560497].message }}

Trending Topics