Community Forums › Forums › Archived Forums › General Discussion › Change or remove Genesis Copyright Footer
- This topic has 12 replies, 6 voices, and was last updated 8 years, 11 months ago by MoodyRiviera.
-
AuthorPosts
-
July 24, 2014 at 5:18 am #115671BelindaParticipant
I am using Genesis and cannot work out how to edit or remove the Genesis Theme footer which says "Return to top of page" on the left and "Copyright © 2014 · Genesis Sample Theme on Genesis Framework · WordPress · Log out" on the right. I goggled and found some details on adding code to the functions.php of the child theme but I tried each option I found and none of them worked.
I'm also trying to figure out how to reduce the space between the widgets in the my sidebar. I'm using the Search widget which has a huge gap between the text label and the search box and then I have a text widget which I've put code for Facebook into but again there are huge gaps between them. The other widgets for Recent Posts, Categories etc are all spaced well and not too far apart but the other items are.
July 24, 2014 at 6:44 am #115673Genesis DeveloperMemberHere is the footer snippets http://my.studiopress.com/snippets/footer/
May 12, 2015 at 10:06 am #151866ChopMemberI've added the credits snipped at the bottom of the functions.php file, but now have two credits.
Where is the stock one removed?
Thanks in advance!
Brian
May 12, 2015 at 10:52 am #151872brockMemberHere is the code you need to customize the footer section. The reason you have two credits is because you have added your own credits without removing the default ones.
<?php //* Do NOT include the opening php tag shown above. Copy the code shown below. //* Customize the entire 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 }
The line that says
remove_action( 'genesis_footer', 'genesis_do_footer' );
is what removes the genesis footer defaults and replaces them with whatever you specify in the following<p>
tag. This should solve your problem.May 12, 2015 at 11:10 am #151875ChopMemberDoing the above gave me this - http://screencast.com/t/mAvDQrFQ4Ng
Which dealt with the footer rather than the credits below the footer.
Thanks!
brian
May 12, 2015 at 11:39 am #151880brockMemberIndeed it does. Sorry about that. It is because of a difference in the footer for Modern Studio Pro. Try pasting this in place of the last snippet I gave.
//* Customize the entire footer remove_action( 'genesis_after', 'genesis_do_footer' ); add_action( 'genesis_after', '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 }
It is basically the same except that it uses the
'genesis_after'
instead of the'genesis_footer'
, a small difference in Modern Studio Pro.May 12, 2015 at 12:06 pm #151883MoodyRivieraMemberIs there some reason not to use the Genesis Simple Edits plugin for this?
https://wordpress.org/plugins/genesis-simple-edits/
*MoodyRiviera*
May 12, 2015 at 12:10 pm #151885ChopMemberBrock, you nailed it. Thanks!!
May 12, 2015 at 12:19 pm #151886brockMemberIt's true there really is no reason why Genesis Simple Edits couldn't be used instead.
May 12, 2015 at 2:08 pm #151897SusanModeratorIs there some reason not to use the Genesis Simple Edits plugin for this?
Because it's simple enough to do without needing to install a plugin 🙂
May 12, 2015 at 3:26 pm #151910MoodyRivieraMemberFor those who know how...maybe...yes. 🙂
But obviously not everyone knows how...including the person who started this thread...and it would have been simpler than this back-and-forth in this string, digging into the functions.php file, etc.
*MoodyRiviera*
May 12, 2015 at 3:38 pm #151911SusanModerator@MoodyRiviera: understood. I always point them to that code snippet, though, *because* it specifically states that this is the way to do it, BUT if you are a beginner, it's easier to use the Simple Edits plugin. By pointing them to the code snippet, you are giving them the best of both worlds - the code for those comfortable, AND the link to the simple edits.
Just giving someone a suggestion to use the Simple Edits plugin might not always be the best option - for example, some of the child themes already have the code added to the functions.php file, in which case, they would need to remove that code, before the Simple Edits will work correctly.
May 12, 2015 at 4:17 pm #151918MoodyRivieraMember@Susan...thanks for the explanation...and I'm sure you're right about all that...as I've stated, I'm no expert at this stuff...just trying to help as much as I can from my limited perspective.
Seems to me that it would be very helpful if StudioPress had someone who was not a total expert, but knew how to write technical instructions...someone to write their theme setup instructions...not only to make things more understandable for people who are not experts, but also to include some of these things like what you just explained...how to actually do some of these things and how to fix some of the problems people keep running into over and over and over.
Every time I look at these forums I see the same questions over and over about headers and footers.
*MoodyRiviera*
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.