WordPress.org

Ready to get started?Download WordPress

Forums

How to add / edit links in the header? (3 posts)

  1. redstardigital
    Member
    Posted 4 years ago #

    My wordpress blog is linked to from the main website, which is a standard html/css affair. I need to update the links at the top of the Elements of SEO theme header so that 'home' points to the homepage of my website (and not the blog homepage).

    I also need to add links into the header to all the other pages in my website but can't figure out which file actually contains the relevant code to add/edit the links. It seems to reference a PHP file somewhere.

    Could anyone explain how to do this please?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try looking in the theme's header.php file.

  3. redstardigital
    Member
    Posted 4 years ago #

    Thanks esmi, I had tried that but couldn't work out how to add new links into the code. By default the 'Elements of SEO' theme has 2 links in the header (home and about) but I couldn't even find the 'about' link in the code. See example below:

    <div id="nav">

    • ">Home
    • <?php wp_list_pages('title_li=&depth=1'); ?>

    </div>

    <div id="masthead">
    <h1>"><?php bloginfo('name'); ?></h1>
    <h3><?php bloginfo('description'); ?></h3>
    </div>

    If I want to change where the existing links currently link to (i.e. I want to link to external webpages) and also add in some new links how would I go about doing that??

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic