Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customize the Footer Text in Metro Pro Theme
Tagged: footer
- This topic has 9 replies, 4 voices, and was last updated 12 years, 4 months ago by
DenverEric.
-
AuthorPosts
-
January 2, 2014 at 12:50 pm #82722
Zach Russell
MemberI am trying to customize the footer text of the Metro Pro theme on my site WP Temple, and I cannot figure out how to do it. I tried the tutorial in the Genesis Docs to customize the footer:
remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'sp_custom_footer' ); function sp_custom_footer() { ?> <p>© Copyright 2012 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">Admin</a></p> <?php }And it just adds the text to the wrong place. I then realized that this footer was added in the
genesis_afterhook, but when I do that, it just adds the code along with the footer code (I left it this way for reference).I would appreciate any help you can offer!
http://wptemple.com———-
Zach Russell
President, ProTech Internet GroupJanuary 2, 2014 at 1:26 pm #82725workky
MemberI use Genesis Simple Edits to Edit the footer text and credits, etc.
http://accidentdoctor.org
life’s tough, it’s a lot tougher if you’re stupid
My WebsiteJanuary 2, 2014 at 1:34 pm #82726David Chu
ParticipantHi!
That is a brain-teaser - Metro is a little strange. I got it to work by threading your command into functions.php as follows. You have to get it in the exact right sequence, or else you don't get the cute container, and you keep the old stuff. Note the commented line, and the one below. And yes, you'll want your custom function somewhere in the file - that's less critical.//* 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', 'genesis_do_footer', 12 ); add_action( 'genesis_after', 'sp_custom_footer', 12 ); add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );
Cheers, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 2, 2014 at 1:38 pm #82727Zach Russell
MemberGenius!
I was a little confused adding priorities (thats what the numbers are right?) to the hooks.
I'll let you know how it works!
Thank you
———-
Zach Russell
President, ProTech Internet GroupJanuary 2, 2014 at 2:36 pm #82746David Chu
ParticipantYes!
As soon as you move to Genesis 2, those priorities become very important, mostly due to needing to support the complexities of HTML5. I've published some of my experimentation and troubleshooting of those HTML5 hooks and priorities.Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 2, 2014 at 3:20 pm #82755Zach Russell
MemberHaha well now I know. As I get into more complex genesis development projects I know this will help! Thanks man.
———-
Zach Russell
President, ProTech Internet GroupJanuary 2, 2014 at 3:32 pm #82759David Chu
ParticipantMy pleasure, good to meet you!
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 2, 2014 at 3:33 pm #82760Zach Russell
MemberWorks like a charm! Only problem was I tried to concatenate strings using Python syntax :/ Thanks for your help!
———-
Zach Russell
President, ProTech Internet GroupJanuary 2, 2014 at 3:34 pm #82761David Chu
ParticipantPython! Oooh, that's wild!
I use Monty Python syntax, though. 🙂
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 17, 2014 at 11:38 am #95330DenverEric
MemberHi Fellas, I used the code you offered here on my site and was left with two footer lines. How do I drop the default footer text in this theme?
Site: http://wikibias.com/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.