• Hi. I changed the titles of my Pages in my sidebar to images. Now, the title of each page is the img src= url of the image. I deleted the show title code from the sidebar, so now I just have the images linking to the Pages. Yay.

    https://livinginstereo.com

    But now at the top of my browser, where there’s usually a title for a Page or whatever, there’s just the >> symbol. I’d like to get rid of this symbol and also have an actual title for the Page at the top of the browser, and for bookmarking purposes.

    Is there anyway to do this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter livinginstereo

    (@livinginstereo)

    Actually, I take back the part about deleting show title from the code. I have to have it show each image/title which is, for instance, <img src=”https://www.livinginstereo.com/wp-content/themes/stylish_blue_modern/images/zabout.gif”&gt; That generates an image where my title used to be.

    But I still don’t know how to get an actual title, like “About”, at the top of my browser and for bookmarking. All I get is the >> symbol. ??

    I think you should delete this tag <?php bloginfo('name'); ?>
    from header.php page instead of delete it from sidebar.php then you can rename it.

    please forgive bad english.

    Thread Starter livinginstereo

    (@livinginstereo)

    I tried that, but no luck. Currently my title tag on my header.php looks like this:

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

    But I’m still unclear. If I delete the <?php bloginfo(‘name’); ?> I don’t know what to replace it with. Currently all my Pages have images as titles. I just want a text name to appear at the top of the browser when someone clicks on a page.

    https://livinginstereo.com

    Can anyone help?

    For your site title: Under Options->General you’ll have ‘Weblog Title’. Whatever is in that box is displayed as bloginfo(‘name’). Try adding ‘Living In Stereo’ and it should show in the browser bar.

    For individual page titles: The wp_title() tag would normally display the name of your page but the browser bar doesn’t support images.

    Thread Starter livinginstereo

    (@livinginstereo)

    So there’s no way to make the wp_title tag display a different name for my pages?

    It took a bit of rereading (and examining your site’s source) to figure out what you’re doing with Page titles. I applaud you for coming up with…well, not a great solution to your goal, but a solution nonetheless. However, I’m not all that sure it’s a good one. Even beside the point that swaping images in as Page titles causes you to lose out on the texty goodness SEO experts and the like make gobs of money off of.

    But it’s your blog, and you get to decide what to do with it. So, a solution to the wp_title() thing… No, you can’t get it to work here. But let’s try this:

    1. Edit your Pages. Drop in a custom field for each, using “title” as the key and whatever the Page should actually have for a title as the value.

    2. In your theme’s header.php (at the top if you like), stick this code block in:

    <?php if(is_page()) {
    global $wp_query;
    $custom = get_post_custom($wp_query->post->ID);
    $page_title = $custom['title'][0];
    } ?>

    3. We’ll just modify the original code for your <title> element.

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

    4. That’s it.

    Thread Starter livinginstereo

    (@livinginstereo)

    I’ll give that a shot! Thanks so very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing the Page Title at the top of the browser’ is closed to new replies.