Support » Fixing WordPress » How to add / edit links in the header?

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

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

    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 id=”masthead”>
    <h1>“><?php bloginfo(‘name’); ?></h1>
    <h3><?php bloginfo(‘description’); ?></h3>

    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??


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add / edit links in the header?’ is closed to new replies.