• hello,

    Does anyone know if is possible to get rid of the “Blog Archive” label that always comes up in search engine queries. I use wordpress for my sites but not all of them are Blogs.

    Cheers,
    Anders

Viewing 12 replies - 1 through 12 (of 12 total)
  • If you can pastebin your index.php and single.php I can tell you what to take out

    Or the header.php…

    Thread Starter digilan2005

    (@digilan2005)

    Here’s my index file, below is my header file.

    <?php
    /* Don’t remove these lines. */
    $blog = 1;
    get_header();
    ?>
    <body>
    <!– Start of StatCounter Code –>
    <script type=”text/javascript” language=”javascript”>
    <!–
    var sc_project=1384183;
    var sc_invisible=1;
    var sc_partition=12;
    var sc_security=”9a54a201″;
    //–>
    </script>

    <script type=”text/javascript” language=”javascript” src=”https://www.statcounter.com/counter/counter.js”></script><noscript&gt;<img src=”https://c13.statcounter.com/counter.php?sc_project=1384183&java=0&security=9a54a201&invisible=1&#8243; alt=”free web page counters” border=”0″> </noscript>
    <!– End of StatCounter Code –>

    <div id=”headerblock”>
    <br><br><br><br><br><br><br><br>
    </div>
    <!– headerblock –>

    <?php if (have_posts()) { while (have_posts()) { the_post(); ?>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <?php the_title(); ?>
    <br> Date posted: <?php the_date_xml(); ?>

    <?php if (get_the_author() !== “Flashmagazine News”):
    echo ‘| ‘; sayfa_sayac(1, 0, 1, 1, 1, ‘d.m.Y – H:i’,” , ”,”, ”, ”);
    endif; ?>
    <br>Author: “><?php the_author(); ?></h2>

    <div class=”centreblock”

    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”><div align=”right”><?php if(function_exists(‘wp_print’)) { print_link(‘<img src=”https://www.blog.digital-landscaping.ca/MyFlashWorld/wp-admin/images/print.gif”&gt; Print This Post’); } ?></div>
    </h3>
    <div class=”meta”>
    </div> <!– meta –>

    <div class=”storyContent”>
    <?php the_content(); ?><?php cjm_insert_catposts(“[postsincategory#5]”); ?>
    </div> <!– story content –>

    <div class=”storyLinks”>
    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(‘[Comments (0)]’, ‘[Comments (1)]’, ‘[Comments (%)]’); ?> 

    </div>
    </div> <!– storyLinks –>

    <!–
    <?php trackback_rdf(); ?>
    –>

    <?php comments_template(); ?>
    </div> <!– centreblock –>

    <?php } } else { // end foreach, end if any posts
    ?>
    <div class=”centreblock”>
    Sorry, no posts matched your criteria.

    </div> <!– centreblock –>
    <?php } // end else no posts
    ?>

    <p class=”centerP”>
    <div align=”center”><?php wp_pagenavi(); ?></div><br>
    <div align=”center”>Copyright &copy 2006 Digital Landcaping</div>.

    <?php
    include_once(‘leftcolumn.php’);
    include_once(‘rightcolumn.php’);
    ?>

    <p class=”centerP”><?php echo $wpdb->num_queries; ?> queries. <?php echo number_format(timer_stop(),3); ?> seconds
    <?php do_action(‘wp_footer’); ?>

    <script type=”text/javascript”>
    <?php
    global $userdata;
    if ($userdata) {
    echo “z_user_name=\”” . $userdata->display_name . “\”;\n”;
    echo “z_user_email=\”” . $userdata->user_email . “\”;\n”;
    }
    ?>
    z_post_title=”<?php the_title();?>”;
    z_post_category=”<?php $c=get_the_category();echo $c[0]->cat_name;?>”;
    </script>
    <script id=”stats_script” type=”text/javascript” src=”https://metrics.performancing.com/wp.js”></script&gt;
    </body>
    </html>

    Header file:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <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>

    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>”

    if this is what you’re talking about, change it to

    rel=”bookmark” title=”<?php the_title(); ?>

    I guess we should always point out the best way to post ones code online…

    https://pastebin.com
    https://pastebin.co.uk
    https://paste.uni.cc

    Anyway, here’s the part you want to edit in your header.php:

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

    Whittle it down to:

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

    Thread Starter digilan2005

    (@digilan2005)

    Wow, thanks a lot!

    This should be the default behaiviour in WordPress I reckon.

    By the way, is lose (see title of thread) the most widely misspelt word in the English language or what?

    As long as you note that ‘default’ here is relative. This is the way the default (Kubrick) theme is written to display the title, but it can easily be altered.

    RE: Loose

    Could behavio[u]r be close behind? ;)

    Kafkaesqui, you’re supposed to be the mod, and spank people who do that . . . unless it’s you looking for the spanking . . .

    Do what? I’m simply correcting something, an activity mods take up all the time…

    Could ‘behaviour’ be close behind?

    Haha, it could indeed! (always the way huh.)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Loose the “Blog Archive” in title?’ is closed to new replies.