1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I manually put the Home Description for this theme?

Discussion in 'Blogging' started by BlackxHat, Aug 4, 2011.

  1. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    I have All in one Seo and I cant get the Home Description to display in search engine (right now it's showing the first paragraph of my homepage). Everything else with the plugin like the Titles works fine.

    Is it true you can put the Home Description manually in the Header.php. If so, how?

    This is my header.php
    Code:
    <?php
    // Press75.com
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    
    <!--
    **********************************************************************************************
    
    Designed and Built by Jason Schuller - theSevenFive.com, Press75.com
    
    CSS, XHTML and Design Files are all Copyright 2007-2010 Circa75 Media, LLC
    
    Be inspired, but please don't steal...
    
    **********************************************************************************************
    -->
    
    <head profile="http://gmpg.org/xfn/11">
        <!-- page titles -->
        <title>
        <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?>
        <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php } ?>
        <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php } ?>
        <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
        <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?>
        <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); ?><?php } ?>
        <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); ?><?php } ?>
        <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php  single_tag_title("", true); } } ?>
        </title>
        
        <!-- meta tags -->
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
        <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <meta name="description" content="<?php the_excerpt_rss(); ?>" />
        <?php endwhile; endif; elseif(is_home()) : ?>
        <meta name="description" content="<?php bloginfo('description'); ?>" />
        <?php endif; ?>
        
        <!-- import required theme styles -->
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css3.css" type="text/css" media="screen" />
        
        <!--[if IE 7]>
            <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style-ie7.css" type="text/css" media="screen" />
        <![endif]-->
        
        <!--[if IE 8]>
            <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style-ie8.css" type="text/css" media="screen" />
        <![endif]-->
        
        <!-- custom theme styles if there are any -->
        <link rel='stylesheet' type='text/css' href="<?php bloginfo('url'); ?>/?sf-custom-content=css" />
        
        <!-- pingback url and favicon link -->
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
        <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />
        
        <?php if (is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>
        
        <?php wp_head(); ?>
        
        <?php if (get_option(THEME_PREFIX . "analytics_code")) { ?>
            <?php echo get_option(THEME_PREFIX . "analytics_code"); ?>
        <?php } ?>
    </head>
    
    <body>
        <div id="header">
            <div id="header-inside">
                <?php if (get_option(THEME_PREFIX . "header_ad")) { ?>
                <div id="full-width-ad">
                    <?php echo ($header_ad = get_option(THEME_PREFIX . 'header_ad')); ?>
                </div>
                <?php } ?>
            
                <div id="header-left">
                <?php if (get_option(THEME_PREFIX . "logo_txt")) : ?>
                    <h1><a href="<?php echo get_option('home'); ?>/" title="Home" ><?php echo get_option(THEME_PREFIX . "logo_txt"); ?></a></h1>
                <?php else : ?>
                    <a href="<?php echo get_option('home'); ?>/" title="Home" ><img class="fade" src="<?php echo ($logo = get_option(THEME_PREFIX . 'logo_img')) ? $logo : get_bloginfo("template_url") . "/images/logo.png"; ?>" alt="<?php bloginfo('name'); ?>" /></a>
                <?php endif; ?>
                </div> <!-- header-left -->
                
                <div id="header-right">
                    <div id="site-search">
                        <?php include('searchform.php'); ?>
                    </div>
                </div> <!-- header-right -->
            </div> <!-- header-inside -->
        </div> <!-- header -->    
                
        <div id="navigation">
            <div class="navigation-inside<?php if (is_home()){echo ' navigation-video';}?><?php if (get_post_meta($post->ID, "_videoembed", true) || get_post_meta($post->ID, "_videoembed_manual", true)){echo ' navigation-video';}?><?php if (is_category()){echo ' navigation-category';}?>">
                <?php if (get_option(THEME_PREFIX . "menu_management")) : ?>
                <?php wp_nav_menu(array('sort_column' => 'menu_order', 'container_class' => 'menu-header')); ?>
                <?php else : ?>
                <ul class="menu">
                    <li <?php if (is_home()) { echo 'class=""'; } ?>><a href="<?php echo get_option('home'); ?>/" title="Home">Home</a></li>
                    
                    <?php wp_list_categories('title_li='); ?>
                    
                    <?php wp_list_pages('title_li='); ?>
                    
                    <li class="subscribe"><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe via RSS">Subscribe</a></li>
                    
                    <?php if (get_option(THEME_PREFIX . "twitter_link")) { ?>
                    <li class="twitter"><a href="http://twitter.com/<?php echo get_option(THEME_PREFIX . "twitter_link"); ?>" title="Twitter.com">Twitter</a></li>
                    <?php } ?>
                </ul>
                <?php endif; ?>
            </div> <!-- navigation-inside -->
        </div>  <!-- navigation -->
    
    
     
  2. devoted

    devoted Registered Member

    Joined:
    Aug 31, 2010
    Messages:
    57
    Likes Received:
    7
    change to

     
    • Thanks Thanks x 1
  3. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    Thanks man I'll try it, It takes some time for google to update that on their search engine right?
     
  4. devoted

    devoted Registered Member

    Joined:
    Aug 31, 2010
    Messages:
    57
    Likes Received:
    7
    Google doesn't use/index your site description, yahoo and other search engines does.
     
  5. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    Isn't this the site/home description? it's one of the fields in All in One seo also. that's what i was referring to

    [​IMG]
    [​IMG]
     
    Last edited: Aug 4, 2011
  6. TNphoneman

    TNphoneman Senior Member

    Joined:
    Dec 15, 2010
    Messages:
    1,177
    Likes Received:
    695
    Your theme may be over riding the plugin. You put the home page description in the plugin under settings you will find all in one seo, click on that and that page is where it is set.
     
  7. BlackxHat

    BlackxHat Power Member

    Joined:
    Oct 6, 2009
    Messages:
    591
    Likes Received:
    78
    Yea but this theme doesnt have a built in option to set the Home Description.

    Anyway, I just want to make sure what the dude above said was the right way to set the Home Description cuz i know it can take a while before G updates this on the SE