Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customizing Footer in Eleven40
Tagged: Eleven40, footer, priorities
- This topic has 6 replies, 2 voices, and was last updated 8 years ago by
phacient.
-
AuthorPosts
-
January 14, 2017 at 11:13 am #199385
phacient
MemberI'm trying to put some text below the secondary navigation that sits at the bottom of the page and when I use Simple Hooks I *almost* get what I need. When I put the text in the "genesis_footer Hook" it's above the navigation but formatted correctly in terms of padding and responsiveness but it's above the navigation. When I put the text in the "genesis_after_footer Hook" it's in the right place but outside of the footer so there's no padding and the info is not in the footer where it should be. Doesn anyone know how I can just move the navigation up above the text or vice verse? I'm told that I need to use Priorities but I just don't know how to do that.
http://www.phacient.com/January 14, 2017 at 11:20 am #199387Victor Font
ModeratorIf you look in your functions.php at line 88, the secondary nav has been moved to the genesis_footer hook with a priority of 12. You need to place your function in the genesis_footer hook with a priority higher than 12 but less than 15 (footer markup close).
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 14, 2017 at 1:43 pm #199400phacient
MemberWhen you say "place your function in the genesis_footer hook", I'm placing text into the genesis_footer hook through Genesis Simple Hooks. What function do I put in with a priority of 13 (let's say)?
This is what I have right now:
//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 12 );
Is this what you are talking about:
//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action('genesis_do_subnav', 12 );
add_action( 'genesis_footer', 13 );
January 15, 2017 at 5:24 pm #199439Victor Font
ModeratorNo, not at all. You have to add your function, the one that displays your text, into the footer with a higher priority than the the nav.
add_action('genesis_footer', 'my_additional_text', 13); function my_additional_text() { /* your code to display the text goes here */ }
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 15, 2017 at 6:40 pm #199441phacient
MemberLike this:
add_action('genesis_footer', 'my_additional_text', 13);
function my_additional_text() {
"The text I want to display here"
}or this:
add_action('genesis_footer', 'my_additional_text', 13);
function my_additional_text("The text I want to display here") {
/* your code to display the text goes here */
}I tried both and neither seems to work. Am I reading this wrong?
January 15, 2017 at 10:19 pm #199449Victor Font
ModeratorThe first example, but I suspect this change may be a little bit beyond your php skill level. The text needs to be echoed or printed. If you don't know what that means, I suggest you hire someone to help you.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 16, 2017 at 10:29 am #199481phacient
MemberI got it sorted. Thanks for the help!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.