• Resolved Patrick Nommensen

    (@pnommensen)


    Hello everyone!

    Below is a copy of my header.php file. I’m wondering if there needs to be any special additions for the SEO Ultimate plugin to perform. I know, for example, that the WordPress SEO plugin by Yoast requires an addition.

    Many thanks!

    <?php
    /**
     * The template for displaying the header.
     *
     * Displays all of the <head> section and everything up till <ul id="main-wrapper">
     * Includes all the action blocks for the header.
     *
     * @since PressWork 1.0
     */
     ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    <title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } if ( $paged > 1 ) { echo (' | Page '); echo $paged; } ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link href='http://fonts.googleapis.com/css?family=<?php echo str_replace(" ", "+", pw_theme_option("body_font")); ?>|<?php echo str_replace(" ", "+", pw_theme_option("headers_font")); ?>' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php if(pw_theme_option("toolbox")=="on" && current_user_can( "edit_theme_options" )) echo '<link rel="stylesheet" href="'.PW_THEME_URL.'/admin/css/toolbox-styles.css" type="text/css" media="screen" />'; ?>
    <?php pw_header_css(); ?>
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php $favicon = pw_theme_option('favicon'); if(!empty($favicon)) echo '<link rel="shortcut icon" type="image/x-icon" href="'.$favicon.'" />'."\n"; ?>
    <meta name="viewport" content="width=device-width" />
    
    <?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>
    <?php wp_enqueue_script('pw_effects_js'); ?>
    <?php
    if(current_user_can('edit_theme_options')) {
    	wp_enqueue_style( 'farbtastic' );
    }
    ?>
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <?php pw_actionCall('pw_body_top'); ?>
    <div id="body-wrapper">
        <header id="header-main" role="banner"> <!-- begin header -->
    		<?php pw_actionBlock('pw_header'); ?>
        </header> <!-- end header -->
        <ul id="main-wrapper">

    section and everything up till <ul id=”main-wrapper”> * Includes all the action blocks for the header. * * @since PressWork 1.0 */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo( ‘charset’ ); ?>” /> <!–[if lt IE 9]> <script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script&gt; <![endif]–> <title><?php wp_title(‘|’,true,’right’); ?><?php bloginfo(‘name’); if(is_home()) { echo ‘ | ‘; bloginfo(‘description’); } if ( $paged > 1 ) { echo (‘ | Page ‘); echo $paged; } ?></title> <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; /> <link href=’http://fonts.googleapis.com/css?family=&lt;?php echo str_replace(” “, “+”, pw_theme_option(“body_font”)); ?>|<?php echo str_replace(” “, “+”, pw_theme_option(“headers_font”)); ?>’ rel=’stylesheet’ type=’text/css’> <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” /> <?php if(pw_theme_option(“toolbox”)==”on” && current_user_can( “edit_theme_options” )) echo ‘<link rel=”stylesheet” href=”‘.PW_THEME_URL.’/admin/css/toolbox-styles.css” type=”text/css” media=”screen” />’; ?> <?php pw_header_css(); ?> <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /> <?php $favicon = pw_theme_option(‘favicon’); if(!empty($favicon)) echo ‘<link rel=”shortcut icon” type=”image/x-icon” href=”‘.$favicon.'” />’.”\n”; ?> <meta name=”viewport” content=”width=device-width” /> <?php if(is_singular() && get_option(‘thread_comments’)) wp_enqueue_script(‘comment-reply’); ?> <?php wp_enqueue_script(‘pw_effects_js’); ?> <?php if(current_user_can(‘edit_theme_options’)) { wp_enqueue_style( ‘farbtastic’ ); } ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php pw_actionCall(‘pw_body_top’); ?> <div id=”body-wrapper”> <header id=”header-main” role=”banner”> <!– begin header –> <?php pw_actionBlock(‘pw_header’); ?> </header> <!– end header –> <ul id=”main-wrapper”>”>http://ww.wp.xz.cn/extend/plugins/seo-ultimate/

Viewing 1 replies (of 1 total)
  • Plugin Contributor John

    (@johnlamansky)

    If you’re using SEO Ultimate’s default settings, then your header.php file doesn’t need an addition. You just need the <?php wp_head(); ?> line, which 99% of themes have anyway. If you really wanted to, you could go to the “Settings” tab of Title Tag Rewriter and change the rewrite method to filtering (which is the method that Yoast’s plugin uses), in which case you would need to change your header.php, but if you stick with the default, then SEO Ultimate works out of the box.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: SEO Ultimate] Changes made to header.php??’ is closed to new replies.