Jump to content
Sign in to follow this  
cfisher

Quick Question On Code

Recommended Posts

cfisher

I installed wpSEO because my webhost said I need to uninstall All-in-One SEO b/c it is a resource hog. wpSEO plugin asks that you remove all <title>.... </title> from the header.php (as well as a few other meta tags) to boost performance. I am not great with PHP. Can you make sure I didn't screw up any opening/closing tags in WHP3 theme? I want to change this:

	<!-- Title and External Script Integration -->
	                <?php
	                                global $bbpress_forum;
	                                if($bbpress_forum ):?>
	                                                <title><?php bb_title() ?></title>
	                                                <?php bb_feed_head(); ?>
	                                                <?php bb_head(); ?>
	                                                <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
	                <?php else:?>
	                                <title><?php if(is_front_page()) { echo SITENAME; } else { wp_title(''); } ?></title>
	                <?php endif;?>
	
	
to this:
	<!-- Title and External Script Integration -->
	                <?php
	                                global $bbpress_forum;
	                                if($bbpress_forum ):?>
	                                                <?php bb_feed_head(); ?>
	                                                <?php bb_head(); ?>
	                                                <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
	                <?php else:?>
	                                               <?php endif;?>
	

Does this look OK? Thanks! Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×