Community Forums › Forums › Archived Forums › Design Tips and Tricks › Monochrome Pro – Switch Footer Navigation & Credit
Tagged: monochrome pro
- This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by rdw2017.
-
AuthorPosts
-
November 20, 2017 at 10:28 am #213789toddjobMember
I can't seem to figure out how to change the order which the footer credits and navigation appear. This one has me completely stumped.
Currently, it looks like:
Copyright © 2017 Weaver Partners | 112 Spring St Batavia, IL 60516
CANDIDATE SERVICES CLIENT SERVICES CAREERS PRIVACY SITE MAP RECRUITER LOGINand I rather it appears like:
CANDIDATE SERVICES CLIENT SERVICES CAREERS PRIVACY SITE MAP RECRUITER LOGIN
Copyright © 2017 Weaver Partners | 112 Spring St Batavia, IL 60516Any thoughts?
Todd Krause – ToddJob Media
https://www.toddjob.netDecember 4, 2017 at 6:11 pm #214266rdw2017MemberI have the same question.
December 5, 2017 at 10:44 am #214289toddjobMemberrdw2017 - I got a response from studio press support. It did not work for me but maybe it will work for you. They Also referred me to the hook documentation but I could not find a solution to resolve this. Try what they suggested below and see if it works for you. If it does, I'd appreciate of you would share what you did.
Hi Todd,
Thank you for reaching out to us with your question! I'm happy to help.
The location of the site footer and secondary menu (otherwise known as the footer menu) is determined by the following sections of the functions.php file:
// Reposition secondary navigation menu. remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_after', 'genesis_do_subnav', 12 );
// Remove site 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 site footer. add_action( 'genesis_after', 'genesis_footer_markup_open', 5 ); add_action( 'genesis_after', 'genesis_do_footer' ); add_action( 'genesis_after', 'genesis_footer_markup_close', 15 );
You can edit these sections to reposition them in the order you'd like.
Unfortunately, we don't have copy/paste code to provide you for this, as it is custom code that would need to be written and tested specifically for your site. Also, we generally do not give step by step instructions for theme customizations such as this: http://www.studiopress.com/what-support-includes.
We have a couple articles in our knowledge base that will help you get started:
- https://my.studiopress.com/documentation/customization/guides-and-references/an-introduction-to-hooks/
- https://my.studiopress.com/documentation/customization/guides-and-references/hook-reference/You may want to post a thread in our Community Forums. It's possible that another user has done something similar and would be willing to share their code with you: http://studiopress.community
You could also check out the other community resources such as the Slack channel and Facebook group: https://my.studiopress.com/community/
If you wish to have someone assist you with the change, we have a list of recommended Genesis developers - just visit http://www.studiopress.com/genesis-developers for a list.
Please let us know if you have further questions and we will be happy to assist you.
Best,
Susan Nelson
Customer Success Specialist - Team LeadRainmaker Digital Support
Todd Krause – ToddJob Media
https://www.toddjob.netDecember 5, 2017 at 11:01 pm #214303rdw2017MemberWhat I don't understand is why they'd design the template that way to begin with. After digging through the code, it looks like they've taken a previous template and modified it, rather than building from scratch, which is why this thing is so difficult to parse out.
Anyway, I figured out how to flip them. The downside is I now have duplicate credits (on my site, the duplicate shows up larger than the original and on the left margin of the page). I'm still trying to figure out how to remedy that.
Here's what I have so far:
// Remove site footer.
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );// Add site footer.
add_action( 'genesis_after', 'genesis_footer_markup_open', 5 );
add_action( 'genesis_after', 'genesis_do_subnav', 5 );
add_action( 'genesis_after', 'genesis_footer_markup_close', 15 );// Reposition secondary navigation menu.
add_action( 'genesis_after', 'genesis_do_footer' );
remove_action( 'genesis_footer', 'genesis_do_footer', 12 );If you compare this to the original you'll probably figure out pretty quickly what I did.
(Make sure you delete the original code before pasting this in, of course.)
December 6, 2017 at 10:45 am #214314rdw2017MemberAh! I figured it out.
// Remove site 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 );//Customize site footer
add_action( 'genesis_footer', 'sp_custom_footer' );
function sp_custom_footer() { ?><div class="site-footer"><div class="wrap"><p>© 2017 RedDesk Writing</p></div></div>
<?php
}***Make sure to remove the original code.
This page helped a lot. https://studiopress.blog/customize-genesis-site-footer/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.