Forums

[resolved] Need to change Home page to say "News" (7 posts)

  1. eggie1978
    Member
    Posted 2 years ago #

    I was able to unhide my home page which is also my posts page. But I can't find the code in the header.php file to change the page name from "Home" to "News". I've exhausted my patience and I've been searching the forum for hours. No one seems to have the same code as me, so I'm not sure what I should change. The only string that says 'home' is for my logo. When you click my name on the site, it brings you to the home page. But there's no code for the page title itself. Unless I'm missing something. I checked the index.php file too and there's nothing that says 'home'.

    Here's my site.

    And here's the code from my header.php file.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

    <?php //comments_popup_script(600, 600); ?>

    <?php wp_head(); ?>
    </head>

    <body>
    <!--header-->
    <div id="header">
    <div class="main">
    " title="<?php _e('The latest comments to all posts in RSS'); ?>"><img alt="" src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" class="rss" />
    <div class="container">
    <div class="search">
    <?php get_search_form(); ?>
    </div>
    </div>
    <div class="logo">
    <h1 onclick="location.href='<?php echo get_option('home'); ?>/'"><?php bloginfo('name'); ?></h1>
    </div>
    <?php
    wp_page_menu('show_home=1&sort_column=menu_order, post_title&link_before=<span><span>&link_after=</span></span>');
    ?>
    </div>
    </div>
    <!--header end-->
    <!--content -->
    <div class="content">
    <div class="main">

    Someone please help me! Thank you.

  2. magickman5
    Member
    Posted 2 years ago #

    hi eggie1978,

    your code is common for all header file.. home takes you back to home page....

  3. vtxyzzy
    Member
    Posted 2 years ago #

    Try using this for wp_page_menu:

    wp_page_menu('show_home=News&sort_column=menu_order, post_title&link_before=<span><span>&link_after=</span></span>');

  4. eggie1978
    Member
    Posted 2 years ago #

    vtxyzzy, that worked! Thank you so much! :)

  5. vtxyzzy
    Member
    Posted 2 years ago #

    You are welcome! Please use the dropdown at top right to mark this topic 'Resolved'.

  6. mographdesigner
    Member
    Posted 2 years ago #

    I also have the same problem. Then I also like to change the order of the menu. I would like my menu to begin (from the left) with the "about us" and then followed by my blog page (which has the title "news"). How will I do that? Thanks and God bless!

  7. Mark / t31os
    Moderator
    Posted 2 years ago #

    Goto edit pages in the admin area, click on quickedit, and notice the field called "Order"...

    The order in which the pages are listed in the menu will be based on the numeric values in the order box for the pages..

    If you want a particular page first, then number that as one, the next as two, and so on.. until you have the desired order.

Topic Closed

This topic has been closed to new replies.

About this Topic