ThemeShaper Forums » Thematic

[closed]

Page Navigation Links repeat Title on Static Pages

(9 posts)
  • Started 5 years ago by johnny baconbitz
  • Latest reply from madfatter
  • This topic is resolved
  1. Hello.
    When I'm making static pages, (manage > pages > write page) the Title (which is also the page nav link) is repeated in the text area below. For example, on the "About Us" page, on the actual page below the nav the first thing you see is "About Us" repeated. I'd like to get that out of there so I could put a different heading in there without affecting the title of the page. The repeated info is a "h1" with a class of ".entry-title".
    Many thanks in advance,
    E

    Posted 5 years ago #
  2. This is why I prefer using custom-coded menus. I show an example here: http://themeshaper.com/blog/functions-php-wordpress-child-themes/

    Posted 5 years ago #
  3. Hey Ian,
    Yeah I saw that bit about the custom menu. In fact I've read every thing you've written about child-themes at least 5 times, love it. There are times where I know I just want to use WP's menu . . . so does anyone know how to eliminate the doubling up?

    Posted 5 years ago #
  4. There is a discussion on this here: http://wordpress.org/support/topic/210632
    However, I'm not fluent in php and I can't find where or on what page in Thematic to make the double titles go away. I'd like to figure this out because I'm making some sites where clients will be adding pages and I don't want to have to follow them up with a custom menu.
    I'm assuming it would be in the index.php page? Many thanks in advance.

    Posted 5 years ago #
  5. Found the section of code that needs surgery. Trouble is when I deleted it it killed the title of my post on my front page. I want to keep that but kill the title on the static pages like "about" and "contact". Here is one of my static pages: http://thedadreport.com/about/

    Code from index.php that needs surgery:

    <h3 <?php if (is_page()) echo 'style="margin-bottom: 20px;" ' ?>class="entrytitle" id="post-<?php the_ID(); ?>"><a title="Article-Link (Permalink)" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <?php edit_post_link('<img class="editpost" alt="Edit" src="' . get_bloginfo('template_directory') . '/images/edit.gif" />', '', ''); ?></h3>

    Posted 5 years ago #
  6. Answer here, courtesy of Davesgonebananas over on WP.org forums.

    <div class="entry">
        <?php if (!is_page()) { ?>
            <h3 <?php if (is_page()) echo 'style="margin-bottom: 20px;" ' ?>class="entrytitle" id="post-<?php the_ID(); ?>"><a title="Article-Link (Permalink)" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <?php edit_post_link('<img class="editpost" alt="Edit" src="' . get_bloginfo('template_directory') . '/images/edit.gif" />', '', ''); ?></h3>
        <?php } ?>
    <div class="entrymeta1">
    Posted 5 years ago #
  7. What an ass I am. I have several WP sites under construction and got confused. The code above was not from Ian's great Thematic. I have 2 more that are though. Sorry for the confusion and my apologies to Ian.

    Posted 5 years ago #
  8. cotinus
    Member

    I'm a new thematic user. Really enjoying the options available with the theme.

    Where can I edit the code for the "entry-title" code? In other WordPress themes that I manage, I have custom code I add to the Page template (page.php) that allows me to customize the <h1> heading on page.

    The code I use is:

    <h1 class="pagetitle">
    <?php
    $thisPost = $post -> ID;
    if (get_post_meta($thisPost, main_title, true) != '') {
    echo (get_post_meta($thisPost, main_title, true));
    }
    else {
    the_title();}
    ?>
    </h1>

    where "pagetitle" is the equivalent of Thematic's "entry-title"

    I've successfully used the above code in several WordPress themes I manage for static sites. It assumes a custom field named "main_title" exists and has content.

    I've looked in the Page template (page.php) but can't find the code. Looked in functions.php, but have had no luck finding any reference to "entry-title".

    Can someone point me to where the code for "entry-title" is generated? Or give some tips on how to accomplish the same result as my code above?

    Posted 4 years ago #
  9. madfatter
    Member

    Hi,

    Has there been any changes / updates on how this might be accomplished? I really want to use the theme's sf menu but I'd like to have different page titles from the menu titles.

    Thanks for any advice.

    EDIT: I found the page menu editor plugin which seems to do the trick.

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.