• Resolved bamosherjr

    (@bamosherjr)


    https://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 7 replies - 16 through 22 (of 22 total)
  • @jugularbean,
    Need more coffee…

    However, OP doesn’t read carefully: you stated clearly in your first reply:
    go to your page template file

    Thread Starter bamosherjr

    (@bamosherjr)

    I now have a page.php, but the title is still showing up. I have figured out how to get rid of the sidebar problem (well when not using a widget sidebar). I need the title to not display on the left hand side.

    Thread Starter bamosherjr

    (@bamosherjr)

    I have to run out and pick up my moving truck. Hope to be back in about an hour. Please do not leave my hanging. You can IM me on AIM at bamjrdesigns. I will be back shortly. Thank you.

    Thread Starter bamosherjr

    (@bamosherjr)

    Okay, I am back, but am still not getting the right display. https://www.hilltopbc.com

    Is there anymore ideas?

    Thread Starter bamosherjr

    (@bamosherjr)

    I have added:

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

    To my page file. But I am still not getting the display that I want. Is this not the right code? and if not what exactly do I need to put?

    Thread Starter bamosherjr

    (@bamosherjr)

    Did some research and got it on my own. The reason the is_home function does not work is beacuase it was depricated in wordpress v2.0. Instead you have to use this:

    <?php if (!(is_page('20'))): ?>
         <div class="article_title"><?php the_title(); ?></div>
    <?php endif; ?>

    It looks great and works! I am closing this thread now!

    You can also use is_page(‘home’) if the slug name of your page is ‘home’.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘No Title on Static Home Page’ is closed to new replies.