WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WordPress SEO by Yoast] - no in h (2 posts)

  1. jcrook93
    Member
    Posted 2 years ago #

    Hi,

    I'm currently using Felici theme - (http://themeforest.net/item/felici-wordpress-magazine-theme/full_screen_preview/1519835)

    I enabled the WordPress Seo plugin by Yoast and went to my header.php file in my FTP, however I have nowhere to put this <title><?php wp_title(''); ?></title> as its set out differnetly.

    Just wondering if anyone knows where to put this?

    As when the plugin is enabled and titles are on force re-write it still shows with duplicate titles, as I cant add the <title><?php wp_title(''); ?></title> anywhere in my header.

    Please help,

    Much appreciated,

    Jon.

  2. jcrook93
    Member
    Posted 2 years ago #

    Apologies for uploading all my header.php file, I just need to know where I add the code in. Thanks

    <!doctype html> <!-- Start of page HTML5 enabled -->
    <head> <!-- Start of head -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>
    <?php
    global $super_options,$helper;
    if(is_home()) echo bloginfo(__('name') , 'h-framework' );
    elseif(is_category()) {
    _e('Browsing the Category ' , 'h-framework' );
    wp_title(' ', true, '');
    } elseif(is_archive()) wp_title('', true,'');
    elseif(is_search()) echo __( 'Search Results for' , 'h-framework' ).$s;
    elseif(is_404()) _e( '404 - Page got lost!' , 'h-framework');
    else bloginfo(__('name' , 'h-framework')); wp_title(__('-' , 'h-framework'), true, '');

    ?></title>

    <link rel="shortcut icon" href="<?php echo get_option(SN."_favicon"); ?>" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /><!-- Feed -->
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
    wp_head(); ?>

    <!--[if IE 9]>
    <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie9.css" />
    <![endif]-->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie8.css" />
    <![endif]-->
    <!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie7.css" />
    <![endif]-->

    </head> <!-- End of Head -->

    <body> <!-- Start of body -->

    <div class="sticky-notice <?php if( $super_options[SN."_notice_bar"]=="false" ) echo "hide"; ?>">
    <div class="skeleton clearfix">
    <img src="<?php echo $super_options[SN."_nt_image"]; ?>" alt='stickyimage' />

    <p class="main-text"><?php echo $helper->customFormat($super_options[SN."_nt_text"]); ?></p>
    " class="main-link"><?php echo $super_options[SN."_nt_main_label"] ?>

    <?php echo $super_options[SN."_nt_close_label"] ?>

    </div>
    </div>

    <div class="top-section clearfix">
    <div class="skeleton">
    <?php
    global $super_options;
    if(function_exists("wp_nav_menu"))
    {
    wp_nav_menu(array(
    'theme_location'=>'top_nav',
    'container'=>'',
    'depth' => 3,
    'container_class' => 'clearfix',
    'menu_id' => 'topmenu')
    );
    }
    ?>

    </div>

    </div>

    <div id="top-bar" class="clearfix skeleton" >
    " id="logo"><img src="<?php echo $super_options[SN."_logo"]; ?>" alt="logo" />

    <?php if($super_options[SN."_banner_enable"]=="true" || $super_options[SN."_banner_enable"]=="")include(HPATH."/helper/topbanner.php"); ?>

    </div>

    <div id="main-menu" class="skeleton">
    <?php
    if(function_exists("wp_nav_menu"))
    {
    wp_nav_menu(array(
    'theme_location'=>'primary_nav',
    'container'=>'',
    'depth' => 3,
    'container_class' => 'clearfix',
    'menu_id' => 'menu')
    );
    }
    ?>
    </div>
    <div class="noticebar skeleton clearfix">

    <div class="notice clearfix">

    <ul class="top-social-icons clearfix">
    <?php if(get_option(SN."_twitter_link")!="") : ?><li class="twitter">">Twitter<?php endif; ?>
    <?php if(get_option(SN."_fb_link")!="") : ?><li class="facebook">">Facebook<?php endif; ?>
    <?php if(get_option(SN."_rss_link")!="") : ?><li class="rss">">RSS<?php endif; ?>
    <?php if(get_option(SN."_linked_link")!="") : ?><li class="linkedin">">Linkedin<?php endif; ?>
    <?php if(get_option(SN."_stumble_link")!="") : ?><li class="stumble">">Stumble<?php endif; ?>

    </div>
    <?php
    $category_ids = get_all_category_ids();
    $select_box = '<select name="cat" id="cat"> <option value="all"> All </option>';
    foreach($category_ids as $cat_id) {
    $cat_name = get_cat_name($cat_id);
    $select_box = $select_box . "<option value='".$cat_id."'>". $cat_name."</option>";
    }
    $select_box = $select_box . '</select>';

    ?>
    <form method="get" id="search_form" action="<?php echo home_url(); ?>/" class="top-searchbar clearfix" >

    <input type="text" value="<?php if(isset($_GET['s'])) echo $_GET['s']; else echo 'Search the site ...'; ?>" name="s" id="s" />
    <?php echo $select_box ?>

    <div class="search-button-wrapper clearfix"><input type="submit" value="Search" id="searchbutton" /></div>

    </form>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic