Viewing 11 replies - 1 through 11 (of 11 total)
  • Just try modify the tag <title></title> which is usually located on the header.php file of the theme.

    Thread Starter velee81

    (@velee81)

    <title><?php if (is_home () ) { bloginfo(‘name’); } elseif ( is_category() ) { single_cat_title(); echo ‘ – ‘ ; bloginfo(‘name’); }
    elseif (is_single() ) { single_post_title(); }
    elseif (is_page() ) { bloginfo(‘name’); echo ‘: ‘; single_post_title(); }
    else { wp_title(”,true); } ?></title>

    this is the tittle script … how can I change ? confuse
    this is my web http://www.yellowbali.com

    Thanks

    What do you want to change it to?

    Thread Starter velee81

    (@velee81)

    I wanna change the html blog title with another title … can I ?

    I’m having a similar problem, but I want to be able to solve the problem so it doesn’t happen again, rather than know how to fix it after the fact.

    When I’m drafting a blog post I’ll often start with a headline. As editing progresses I may make a slight change to the headline, or delete the headline and use something completely different. The problem is that when I view the finished post the the edited/replaced headline, the Firefox browser tab shows a snippet of the first part of the headline, and it is always the old headline on the browser tab.

    I know that WordPress auto-saves posts as you are working on them, so it seems that perhaps the auto-save is locking onto the original headline (at least for the browser tab).

    Can anyone tell me how to fix this?

    I’ve just tried the process that you described and I can’t replicate your problem. What is being used to generate the <title> tag in header.php?

    I’ve just tried the process that you described and I can’t replicate your problem. What is being used to generate the <title> tag in header.php?

    Since I’m not sure you mean by “what is being used to generate the <title> tag in header.php” here’s my entire header.php via WordPress Dashboard > Appearance (Editor) > header.php:

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

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

    <title><?php if(is_front_page()) { echo bloginfo(‘name’); } else { wp_title(”); } ?></title>
    <link rel=”shortcut icon” href=”<?php if (get_option(‘favicon’)):?><?php echo get_option(‘favicon’);?><?php else :?><?php bloginfo(‘stylesheet_directory’); ?>/favicon.ico<?php endif;?>” type=”image/x-icon” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”all” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/print.css” type=”text/css” media=”print” />

    <?php if(!get_option(‘pp_nodrag’)):?>
    <!– Sidebar docking boxes (dbx) by Brothercake – http://www.brothercake.com/ –>
    <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/dbx.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/dbx-key.js”></script>

    <?php endif;?>
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘stylesheet_directory’); ?>/dbx.css” media=”screen, projection” />

    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <!–[if lt IE 8]>
    <script src=”http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js&#8221; type=”text/javascript”></script>
    <![endif]–>

    <!–[if IE 6]>
    <script src=”<?php bloginfo(‘stylesheet_directory’); ?>/belatedpng.js”></script>
    <script>
    DD_belatedPNG.fix(‘.png_bg, img, #sidebar ul li, .plimage, .headerimage, .homeimage’);
    </script>
    <style>
    #header .blogtitle .sheen{display: none; height: 1px;}
    </style>
    <![endif]–>

    <?php if(get_option(‘plallow’) && get_option(‘pp_linkcolor’)):?>
    <style>
    a, h1.blogtitle a:hover, .postdata a:hover, h2.posttitle a:hover, tags a:hover,.commentlist cite a, .commentlist cite, #subnav li a:hover, #subnav .current_page_item a, .button:hover, input[type=”submit”]:hover,#calendar caption{color: <?php echo get_option(‘pp_linkcolor’); ?>;}
    </style>
    <?php endif; ?>

    <?php if ( is_singular() ) wp_enqueue_script( “comment-reply” ); wp_head(); ?>
    </head>
    <body>

    <div id=”page” class=”fix”>
    <div id=”wrapper” class=”fix”>
    <div id=”header” class=”fix”>
    <?php if(get_option(‘custom-header’)):?>
    “><img class=”headerimage” src=”<?php echo get_option(‘custom-header’);?>” alt=”<?php bloginfo(‘name’); ?>”/>
    <?php else:?>
    <h1 class=”blogtitle”>“><div class=”sheen”></div><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    <?php endif; ?>
    </div><!– /header –>

    <div id=”nav” class=”fix”>
    <ul class=”fix”>
    <li class=”page_item “>/” title=”Home”><img class=”homeimage” src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/home-icon-trans.png”/>
    <?php
    $frontpage_id = get_option(‘page_on_front’);
    wp_list_pages(‘sort_column=menu_order&exclude=’.$frontpage_id.’&depth=1&title_li=’);?>

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    </div><!– /nav –>

    <div id=”container” class=”fix”>
    <div id=”left-col”>

    <title><?php if(is_front_page()) { echo bloginfo('name'); } else { wp_title(''); } ?></title>

    That’s your title tag. It displays the blog name when a visitor is on the front page. Otherwise, it displays the page’s title.

    Yes, it is showing the blog name when a visitor is on the front page, but is there a way to make it show the current page title, rather than the old one that no longer exists?

    It is set to show the current page title. Remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    If you are wanting to change the entire blog’s name, you can do that in the admin panel, under the General page.

    If you are wanting to change a post or page name, you can do that through the admin panel as well, by editing those page titles.

    Does this answer your question?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘how to change tittle on browser tab ?’ is closed to new replies.