• Resolved Bill Kochman

    (@wordweaver777)


    Hello. Just yesterday I installed WordPress 3.0.4 on our EPN server. Once I installed the “Disable Canonical URL Redirection” plug-in, everything is now working great for the most part.

    I am currently tweaking the default TwentyTen theme a bit. I would like to add two additional links right next to the “Home” and “About” links that are located below TwentyTen’s header image. These links will not go to other pages created with WordPress; rather, one will go to an external HTML doc which is the home page for our main site. The other link will go to a “Contact Us” cgi script that is in our cgi-bin. I want these two new links to appear on all pages, along with the “Home” and “About” links.

    I have looked at a few other threads here, but still haven’t quite figured out how to implement this simple feature. I’ve also looked at some of the PHP files, and suspect that I need to add the links in TwentyTen’s “header.php” file, in this section:

    —–

    `<div id=”access” role=”navigation”>
    <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    <div class=”skip-link screen-reader-text”><a href=”#content” title=”<?php esc_attr_e( ‘Skip to content’, ‘twentyten’ ); ?>”><?php _e( ‘Skip to content’, ‘twentyten’ ); ?></a></div>
    <?php /* Our navigation menu. If one isn’t filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?>
    </div><!– #access –>
    </div><!– #masthead –>
    </div><!– #header –>`

    —–

    Undoubtedly, it is a simple thing to implement, but I am a total newbie to WordPress, and pretty much to PHP as well, so any assistance would be greatly appreciated.

    Thank-you very much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I would recommend that you create child theme and make changes in child theme as when you update wordpress twenty ten theme will be over written and you will loose your changes.

    Have you looked into custom menus as that allows you to have external links.

    Thread Starter Bill Kochman

    (@wordweaver777)

    Hello “govpatel”. Thank-you for your response. I have just searched for “child theme” here on the WordPress site, and I am in process of reading about it.

    I just made a text file containing all of the tweaks that I have made thus far, and there are already eleven of them, with all of them being in the TwentyTen theme, and one in the “wp-includes/post-template.php”, so I am sure that your suggestion regarding a “child theme” is a good idea.

    Regarding “custom menus”, I haven’t even begun to explore or study that issue yet. But let me ask you: Being as I only want to add two links to the links that already exist below TwentyTen’s header image, do I really need to create an entirely new custom menu? Isn’t there an easier way to just add the two additional links that I need next to “Home” and “About”?

    Thanks again for your assistance.

    Do you want them next to Home About on same bar ?

    Thread Starter Bill Kochman

    (@wordweaver777)

    Yes, exactly.

    Then custom menu will work for you click on Appearance>>>Menus
    you can create external links from there and your pages

    Thread Starter Bill Kochman

    (@wordweaver777)

    Thank-you very much for your help, govpatel. I have now added the new links to the menu. And to think that I was scrounging around in the php files trying to find a solution to this issue. ??

    Now I need to work on that child theme that you suggested.

    You are welcome and make child theme is best thing you will learn as you will not have headache when you update wordpress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How To Add More Links Below TwentyTen Header Image’ is closed to new replies.