Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customize Footer Metro Theme
- This topic has 22 replies, 7 voices, and was last updated 13 years ago by
AnitaC.
-
AuthorPosts
-
February 18, 2013 at 6:58 am #20969
Mike Gosling
ParticipantWell I apologize to everyone that this has gone on and on. The functions.php file really had me flummoxed! And thank you Rick for your email and to Anitac for the offer of online help. I shall keep these in mind.
And I apologize to you too Rick - Your code has indeed worked!! I sat down and really studied it and the bit that I had not inserted was the line:
add_action( 'genesis_after', 'custom_genesis_do_footer', 12 );It all now works perfectly! Take a look - http://www.MikeGosling.com. Having the Footer widgets makes it all very easy to set up. Thank you all for persevering with me. I've learnt heaps and express my gratitude that you folks are out there willing to help.
For other Metro Theme users, here is Rick's excellent code I used to insert my footer widgets. I wonder if this code would work with other themes?
// Reposition the footer remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); add_action( 'genesis_after', 'custom_genesis_do_footer', 12 ); add_action( 'genesis_after', 'genesis_footer_markup_close', 13 ); // Customize the content of your footer function custom_genesis_do_footer() { echo '<div class="gototop"><p>'; dynamic_sidebar( 'footer-left' ); echo '</p></div>'; echo '<div class="creds"><p>'; dynamic_sidebar( 'footer-right' ); echo '</p></div>'; } // Register left side footer area genesis_register_sidebar( array( 'id' => 'footer-left', 'name' => __( 'Footer Left', 'CHILD_THEME_NAME' ), 'description' => __( 'This is the left side of the footer.', 'CHILD_THEME_NAME' ), ) ); // Register right side footer area genesis_register_sidebar( array( 'id' => 'footer-right', 'name' => __( 'Footer Right', 'CHILD_THEME_NAME' ), 'description' => __( 'This is the right side of the footer.', 'CHILD_THEME_NAME' ), ) );
Dr. Mike Gosling, The Emotional Leader Program
February 18, 2013 at 7:04 am #20970RickD
ParticipantHey Mike,
You're welcome. I'm happy to hear that you got it all working. I looked at your website and it looks great. Making those two footer sections widgetized really makes it easy to switch things around without having to touch the functions.php file.
-rd
-Rick R. Duncan
February 18, 2013 at 7:31 am #20978AnitaC
KeymasterOkay. So then what you were looking for was to "widgetize" the footer area.... not "customize" the text in the already existing footer, which are the different solutions I was providing to you. I guess language and terminology really do make a difference. Glad you got it resolved.
Need help with customization or troubleshooting? Reach out to me.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.