WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] No Title on Static Home Page

[Resolved] No Title on Static Home Page

  • http://www.hilltopbc.com

    I am trying to have this home page not display a title. If I do not include a title, it does not show up in my sitemaps, or on the page list, and it makes a funny little rollover in my widget sidebar. How do I make it so that the page has an actual title, but so that it does not display the title on the actual page?

    I want the page to have an actual title in the dashboard, but when displaying it on the web for viewers, I do not want the word Home there. Can you please help!

Viewing 15 replies - 1 through 15 (of 22 total)
  • What you can do is go to your page template file (presentation->theme editor) and look for a line that has the code
    the_title();

    and replace it by
    if (!is_page(home))
    the_title();

    I put that into place, and it like killed my whole theme. I am not sure why? Is there a way we can IM somehow, I need to get this done for the client and soon. Please let me know.

    <?php if (!is_page(home)) ?>
    <div class=”article_title”><?php the_title(); ?></div>
    <?php endif; ?>

    This is what I have in place.

    You missed a colon

    <?php if (!is_page(home)): ?>

    <?php if (!is_page(home)); ?>
    <div class=”article_title”><?php the_title(); ?></div>
    <?php endif; ?>

    Still not working.

    not a semi-colon…a colon
    :

    copy paste from my code above

    <?php if (!is_page(home)): ?>
    <div class=”article_title”><?php the_title(); ?></div>
    <?php endif; ?>

    This is in place, and still comes up with the title. I am new at PHP and am not sure how all this works.

    Are you using WP 2.2?

    cause if you are not then you have to use

    <?php if (!is_home()): ?>
    <div class=”article_title”><?php the_title(); ?></div>
    <?php endif; ?>

    I am using wordpress 2.2. I have copy pasted the code you gave me above and have put it in both leftside.php, and leftside_page.php. I am still getting the title.

    leftside.php and leftside_page.php???

    are these templates you are using for your home page?

    those files are templates that i am using across the page. It is what displays the left side of the page. My index.html for my theme looks like this:

    <?php get_header(); ?>
    <?php include (TEMPLATEPATH . '/leftside.php'); ?>
    <?php include (TEMPLATEPATH . '/rightside.php'); ?>
    <?php get_footer(); ?>

    They are just a theme file.

    So you don’t have any file title page.php in your template list?

    1. It is index.php not .html
    2. It would be nice if you could explain clearly what you want.
    3. Do you want to exclude “Home” form being listed on the right sidebar??

    no i don’t should i?

    Well ideally a WP Page uses the page.php template, but if that doesn’t exist it’ll use the index.php template.

    So if you don’t have a page.php then ideally any changes you make to the index.php will be applicable for pages as well.

    If the code changes you made aren’t helping, I’m not really sure what the issue is.

    @moshu – he’s using a static page for his front page and he’s trying to ensure that the title doesn’t display

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Resolved] No Title on Static Home Page’ is closed to new replies.