Community Forums › Forums › Archived Forums › Design Tips and Tricks › Editing the Footer
- This topic has 7 replies, 3 voices, and was last updated 12 years, 8 months ago by
Brad Dalton.
-
AuthorPosts
-
February 27, 2013 at 11:08 am #23120
bassjamm
MemberHi all,
I'm trying to customise the footer on my Metro theme using the code snippet supplied by Studiopress here - http://my.studiopress.com/snippets/footer/#custom-footer
Every time to try to add it to my themes functions.php script it crashes my site.
Where exactly within the .php file do I need to add it please?
Thanks in advance.
J
February 27, 2013 at 1:14 pm #23142Brad Dalton
ParticipantAt the end of your child themes functions.php file. Backup the file first.
February 27, 2013 at 1:42 pm #23148bassjamm
MemberI did that Brad and it completely screwed the site up :/
However, I've just tried it again with the same code and it's worked. Maybe it's the edits that I made to the code that screwed it up.
That having been said, I want to have navigation in the footer to less important pages (like that which can be seen over at http://thinktraffic.net)
Any ideas on how to alter the customer snippet code to get that sort of look in the Metro theme?
Thanks
February 27, 2013 at 2:12 pm #23156Brad Dalton
ParticipantThere's different ways to do this:
You can create a widget area in 3 separate footer locations (wherever there's a genesis_hook and use the custom menu widget with the Widget Logic plugin and conditional tags.
Or you can write a custom function using conditional tags and add these actions in the function.
/** Reposition the secondary navigation menu */ remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_footer', 'genesis_do_subnav' );
You can use this code and hide the footer nav using CSS as well.
Example:
.home .footer_nav { display: none; }or use the page i.d rather than #home
February 27, 2013 at 2:14 pm #23157cvillelady
MemberI haven't tried this on a site yet, but I saw some code for adding a custom footer navigation bar here:
http://www.areuconnected.com/genesis/customizing-genesis-footer-content/Scroll down to the directions for "Add a Custom Menu in Custom Footer."
February 27, 2013 at 2:22 pm #23158Brad Dalton
ParticipantTry out the code and see if it works. You could also create a third nav menu and use thaqt in the footer or duplicate your primary nav menu in the footer and hide it on any pages you want.
February 27, 2013 at 2:26 pm #23159bassjamm
MemberI've managed to get a half working work around to this...
See my site http://injuryfree.me
I want the navigation links more in the middle though, and the copyright stuff on the right.
Any tips on how to do that?
Thanks for the help and advice thus far!
February 27, 2013 at 2:48 pm #23166Brad Dalton
ParticipantYou should be able to find tips on how to do that using the search box as those questions have already been answered in these forums.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.