WordPress.org

Ready to get started?Download WordPress

Forums

Title reads "Home Page at Your Site Name" (17 posts)

  1. TaoGem
    Member
    Posted 6 years ago #

    Link to my blog

    <title> Home Page at Your Site Name</title>

    I could have sworn that I had a title in there. I don't remember how I originally created it though.

    Also seems like my meta tags and meta description have disappeared from my site as well.

    Maybe take a look at my site?

    I did find this way down on the page.

    <div id="header">
    <div id="headerimg">
    <h1>TaoGem Gemstones</h1>
    <div class="description">inexpensive wholesale interesting unique unusual loose cut gemstone cabochons supplies for designing custom jewelry</div>
    </div>

    I just thought the meta tags and description info should be in the header at the top along with a correct site title.

    Can someone clear up my confusion please?

  2. Bodhipaksa
    Member
    Posted 6 years ago #

    The <header> you're seeing is not the same as the html <head>, which you'll have to locate. I'd suggest opening header.php in your theme directory and looking for tags like <title> and anything with "meta" in it.

    It looks like the Title on your theme is hard-coded rather than being php code that calls up the site name and site description. I'd suggest taking a look in header.php in the default theme and see how these things can be handled dynamically.

  3. TaoGem
    Member
    Posted 6 years ago #

    Thanks for letting me know where to take a look. Problem is. I have not a clue what I am looking at. I don't even see my sites title in here at all.

    I don't know what else to do but post the portion of the header code that I think is relevant, and see if you or someone else sees anything.

    A little of the subject, but I see a lot of 404 error things in there. Are those a problem, or suppose to be there?

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.ca. Thanks!]

  4. iridiax
    Member
    Posted 6 years ago #

    Wow, that's the most code I've ever seen for a page title (<title>)!

    Why not just use the standard:

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

  5. poe
    Member
    Posted 6 years ago #

    TaoGem in all those places where it says "Your Site Name" put: <?php wp_title(); ?>.

  6. Bodhipaksa
    Member
    Posted 6 years ago #

    What Poe said. What appears as the page title is what's between the <title> and </title> tags. That's a lot of code!

    In fact it's a ludicrously long and complex way of displaying page titles, but presumably it's that way for a reason. Just replace the words "your site name" with the code poe posted and at least you'll see how the designer of this blog intended the titles to work.

    The 404 stuff is an irrelevance -- it's just in there so that when your site tells a visitor that a resource they're looking for doesn't exist they'll get a 404 message.

    There is no code in there for either meta content or meta keywords. I'd suggest you use a plugin like the All in One SEO Pack that will allow you to add keywords and a description to each post or Page. The plugin adds fields so that when you're creating a new Page or post there is a field for each of those kinds of meta tags. The plugin will also add the tags automatically to the <head> of each page.

  7. TaoGem
    Member
    Posted 6 years ago #

    Ok Poe,

    I did as you suggested.

    That long bunch of code is not longer viewable and back to this:

    <title> Home Page at Your Site Name</title>

    Where is my sites name at though?

    It was odd today... I actually found a page of mine titled "Your Site Name" during a Google search results, instead of my ToaGem name.

    Any idea how to get my site to have an actual title?

    By the way, thank you for the help too..

  8. poe
    Member
    Posted 6 years ago #

    Please post your title code as it is now so I can see it.

  9. TaoGem
    Member
    Posted 6 years ago #

    Here ya go...

    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <title>  Home Page at Your Site Name</title>
    
    <meta name="generator" content="WordPress 2.3.3" /> <!-- leave this for stats -->
    <meta name="verify-v1" content="i4zLaV61sZ2jmgcj/YiJSnnR65iIUxVMI0Wux1kS/JI=" />
    <link rel="alternate" type="application/rss+xml" title="[Feed title]" href="[Feed URL]" />
    <link rel="stylesheet" href="http://taogem.com/wp-content/themes/coyote-moon/style.css" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://taogem.com/feed/" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="http://taogem.com/feed/rss/" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://taogem.com/feed/atom/" />
    
    <link rel="pingback" href="http://taogem.com/xmlrpc.php" />

    Thank you Poe...

  10. TaoGem
    Member
    Posted 6 years ago #

    Maybe I should also show you how the code looks now within the themes php file. Here is what it looks like after editing in what you suggested.

    <title><?php
    function oGetProductName( $meta ){
    global $table_prefix;
    $query = "SELECT product_id
    FROM ".$table_prefix."wpsc_productmeta
    WHERE meta_value = '".$meta."'";
    $result = mysql_query( $query );
    $row = mysql_fetch_array( $result );
    $productid = $row[0];
    $query = "SELECT name
    FROM ".$table_prefix."product_list
    WHERE id = ".$productid;
    $result = mysql_query( $query );
    $row = mysql_fetch_array( $result );
    $productname = $row[0];
    return $productname;
    }
    function oGetCategoryName( $nicename ){
    global $table_prefix;
    $query = "SELECT name
    FROM ".$table_prefix."product_categories
    WHERE <code>nice-name</code> = '".$nicename."'";
    $result = mysql_query( $query );
    $row = mysql_fetch_array( $result );
    $categoryname = $row[0];
    return $categoryname;
    }
    if( is_page() && trim(wp_title ('',false )) == 'Products Page' ){
    $pparts = explode('/', trim($_SERVER['REQUEST_URI'],'/') );
    if( $pparts[2] != '' ){
    echo oGetProductName( $pparts[2] );
    }
    else if( $pparts[1] != '' ){
    echo oGetCategoryName( $pparts[1] );
    }
    else{
    wp_title (''); echo ' at <?php wp_title(); ?>';
    }
    }
    else{ if ( is_single() ){ wp_title(''); }elseif (is_404()){ echo 'Your Site Name - 404 Error';
    }elseif (is_category()) { echo single_cat_title(); echo ' at Your Site Name'; }elseif
    (is_page()) {
    wp_title (''); echo ' at Your Site Name'; }else{ echo '<?php wp_title(); ?>'; }
    }
    ?></title>
  11. TaoGem
    Member
    Posted 6 years ago #

    You still with me Poe?

    The last two posts consist of the first one showing what the page source looks like now.

    The last post shows what the themes php file looks like now that I have edited in the <?php wp_title(); ?> in two spots.

    I did find my sites name as it should be within my WP admin panel under options/general.

  12. Ivovic
    Member
    Posted 6 years ago #

    theme design is not for you... please choose another theme.

  13. poe
    Member
    Posted 6 years ago #

    TaoGem.... I'm not quite sure why you think you need all that code. In fact I've never seen title code quite that... complex. Here's what I use:

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

  14. TaoGem
    Member
    Posted 6 years ago #

    Poe, I did not create any of that code. It is just there for what ever reason.

    I can only guess that it is all a result of plugins added or something?

    If you think I can just delete the entire thing and replace it with what you have in your last post, I will do it. Is there any reason at all you would imagine that it could be there for?

    The plugins I am using are:

    Add Meta Tags

    Adds the Description and Keywords XHTML META tags to your blog’s front page and to each one of the posts, static pages and category archives. This operation is automatic, but the generated META tags can be fully customized. Also, the inclusion of other META tags, which do not need any computation, is possible.

    AstickyPostOrder

    AStickyPostOrderER lets you customize the order in which posts are displayed per category, per tag, or over-all, in WordPress 2.3+ blog. Useful when using WordPress as a Content Management System. Now with category or tag based meta-stickyness!

    Also using the following:

    Akismet, Contact Form 7, Google XML Sitemap, Language Translator, Ultimate Google Analytics , WP Shopping Cart

    Ivovic,

    Can you elaborate on why it is not for me please?

    I am always interested and eager to listen to others who have more experience. Your input would be greatly appreciated.

    Maybe it is the theme itself that decided upon all that extra coding?

    What are the hazards or precautions to take when switching themes in regards to widgets, plugins, etc..??

    Thanks again for comments and checking in on this thread too!

  15. TaoGem
    Member
    Posted 6 years ago #

    I went ahead and changed from my CP.

    content/theme/coyote within the php header

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <meta name="verify-v1" content="i4zLaV61sZ2jmgcj/YiJSnnR65iIUxVMI0Wux1kS/JI=" />
    <link rel="alternate" type="application/rss+xml" title="[Feed title]" href="[Feed URL]" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_get_archives('type=monthly&format=link'); ?>
    
    <?php wp_head(); ?>
    
    </head>

    The page source code does not look anything like the above though?

    Here is what it looks like:

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.ca. Thanks!]

    In particular, confirm with your host that mod_rewrite and AllowOverride are both on and enabled.

    Seems like a lot of information within the head section?

  16. TaoGem
    Member
    Posted 6 years ago #

    Poe, if you make it back here...

    The mods deleted the source code I wanted to show so you could compare it to the edited version from within my CP. Too much code within the post I guess is why they deleted it.

    If you don't mind, maybe take a look at the source code on this page, and compare it to how it looks above as I edited it from within my CP via content/themes/coyote theme PHP folder.

    Thanks

  17. TaoGem
    Member
    Posted 6 years ago #

    Well I don't know what has happened, but since I made the above changes, Google is no longer indexing my site at all.

    They also are saying that I have not submitted a sitemap. In fact I did.

    None of my products are being indexed any longer as well.

    What ever that code was for, it must have had a reason.

    I replaced everything just as it was before I started this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags