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 10 years, 1 month ago by DenverEric.
-
AuthorPosts
-
January 2, 2014 at 12:50 pm #82722Zach RussellMember
I 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_after
hook, 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!
———-
Zach Russell
President, ProTech Internet GroupJanuary 2, 2014 at 1:26 pm #82725workkyMemberI 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 ChuParticipantHi!
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 RussellMemberGenius!
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 ChuParticipantYes!
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 RussellMemberHaha 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 ChuParticipantMy pleasure, good to meet you!
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 2, 2014 at 3:33 pm #82760Zach RussellMemberWorks 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 ChuParticipantPython! 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 #95330DenverEricMemberHi 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.