• Hello,

    I am working on a WP site with the Hanami theme. The website I am working on is tammyjez.com.

    My client is totally happy with the look of the theme and site. I have tweaked the CSS code a bit for her liking. She wants it clean and simple.

    I am stumped on how to remove the EXTRA titles on the About Tammy, Resume and Contact pages. When I use the no display code for the title it wipes out the titles above the videos (home page) as well. I figured it would do this so I was looking for a CLEAN way to remove the title as it looks bad having the graphic and the title up top (Example: “Contact” link up top as well as Contact graphic in orange below).

    Any help would be great.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Try this on the page template where the title is. Basically if it is the about page then dont display it.

    <?php if ( is_page('about'))
    {
    // Dont Add <h2>Title Tag</h2>
    }
    else
    {
    ?>
    <h2>Title Tag</h2>
    <?
    }
    ?>
    Thread Starter gabebecker

    (@gabebecker)

    I am a bit new at this, I don’t see a page template.

    Also, if I want the title gone in both the About and Contact page would the code look as follows.

    <?php if ( is_page(‘about’,’contact’))
    {
    // Dont Add <h2>Title Tag</h2>
    }
    else
    {
    ?>
    <h2>Title Tag</h2>
    <?
    }
    ?>

    Try looking in page.php via Appearance/Editor

    Thread Starter gabebecker

    (@gabebecker)

    Thanks, but not seeing it…..this is what I have. Thanks for your response.

    Comments
    (comments.php)
    Footer
    (footer.php)
    Header
    (header.php)
    Main Index Template
    (index.php)
    Search Form
    (searchform.php)
    Sidebar
    (sidebar.php)
    Theme Functions
    (functions.php)
    legacy.comments.php
    (legacy.comments.php)
    Styles
    Stylesheet
    (style.css)

    ie.css
    (ie.css)
    ie6.css
    (ie6.css)

    Well it has to be index.php if that is all you got.

    The code I gave you will work on that page also.

    Thread Starter gabebecker

    (@gabebecker)

    Cool, that is what I was thinking. So, can I place your code anywhere? Also, did I add to the code correctly (i.e. contact)?

    Here is the code to the index.php file:

    <?php get_header(); ?>

    <div id=”content”>
    <?php if (is_day()) { ?>
    <h2 class=”browse”>You are currently browsing the archives for <?php the_time(‘l, F jS, Y’); ?></h2>

    <?php } elseif (is_month()) { ?>
    <h2 class=”browse”>You are currently browsing the archives for <?php the_time(‘F, Y’); ?></h2>

    <?php } elseif (is_year ()) { ?>
    <h2 class=”browse”>You are currently browsing the archives for <?php the_time(‘Y’); ?></h2>

    <?php } elseif (is_category()) { ?>
    <h2 class=”browse”>You are currently browsing the <?php single_cat_title(”); ?> category</h2>

    <?php } elseif (is_tag()) { ?>
    <h2 class=”browse”>You are currently browsing posts tagged with <?php single_tag_title(); ?></h2>

    <?php } elseif (is_search()) { ?>
    <h2 class=”browse”>You are currently browsing posts that matched <?php the_search_query(); ?></h2>

    <?php } ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”entry”>
    <?php if(is_home()) { if ( function_exists(‘wp_list_comments’) ) { ?> <div <?php post_class(); ?>> <?php }} ?>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <?php the_content(‘<span class=”cont”>§ Read the rest of this entry…</span>’); ?>

    <?php if(is_home()) { if ( function_exists(‘wp_list_comments’) ) { ?></div><!– close post_class –><?php }} ?>
    </div><!– close .entry –>

    <?php if (is_single()) { ?>
    <div id=”comments”><?php comments_template(); ?></div>
    <?php } ?>

    <?php endwhile; ?>

    <p class=”entry_nav”>
    <span class=”left”><?php next_posts_link(‘« Older Entries’) ?></span>
    <span class=”right”><?php previous_posts_link(‘Newer Entries »’) ?></span>
    </p>

    <?php else : ?>

    <p class=”error”>With searching comes loss
    and the presence of absence:
    <?php the_search_query(); ?> not found.</p>

    <?php endif; ?>

    </div><!– close content –>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    You need to replace this.

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    This is what makes the Title on each page.

    Change to

    <?php if ( is_page('about'))
    {
    ?>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <?
    }
    ?>

    Let me know if that works.

    Thread Starter gabebecker

    (@gabebecker)

    You are the man! Thanks, my client will be so happy…..it was driving her (and me) nuts.

    I added the contact page like this and it works:

    <?php if ( is_page(‘about tammy’, ‘contact’))
    {
    ?>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <?
    }
    ?>

    Your Welcome ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Removing Individual Page Titles’ is closed to new replies.