WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven - Navigation bar in header AND FOOTER? (4 posts)

  1. RichGresswell
    Member
    Posted 1 year ago #

    Hello Everybody

    I'm finding this forum really helpful and it's become my first port of call when I have a question to ask. I have a site http://www.musicenglish.co.uk and I would like to add a footer navigation bar identical to the header one. My theme is twenty eleven.

    Does anyone know how I can do this?

    Best wishes
    Richard

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You'll need to create a child theme before you do any modifications of theme files.

    http://codex.wordpress.org/Child_Themes

    Hopefully, you have not made changes already?

    Then you will need to modify the footer.php file -- you can likely copy the navigation menu code to that file -- though you may need to make some relatively minor changes to it -- such as changing the ID of access as you can't have duplicate ID's on the same page.

  3. RichGresswell
    Member
    Posted 1 year ago #

    Thanks WPyogi

    Thank you for your advice. I haven't made any changes yet and will make a child theme as you point out. I've just learnt how to make child themes and I want to develop my skills here. I've started by adding a style sheet and playing with css. But I'm not sure yet how to change php. Do I simply create a 'footer' php file and add to child theme and then paste in code for nav bar from header.php file? Like you say there may be other alterations to make - what is an ID here in this case (I understand IDs for posts etc.)

    Thank you.
    Best wishes
    Richard

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You need to make a copy of the existing footer.php file and add that to the child theme folder -- and then make changes to that copy of footer.php.

    ID's are assigned to some elements so you can use them as CSS selectors. By code rules, you can't have more than one instance of an ID on a page.

    http://www.w3schools.com/css/css_id_class.asp

    But right now, you don't have a child theme active on your site...after creating it, you have to switch to it, like changing to any other different theme.

Topic Closed

This topic has been closed to new replies.

About this Topic