Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customize the Footer Text
Tagged: footer text remove customize
- This topic has 7 replies, 5 voices, and was last updated 10 years, 5 months ago by Sridhar Katakam.
-
AuthorPosts
-
October 23, 2013 at 9:25 pm #68549kennypressParticipant
Hi,
Trying to learn Genesis and building a stripped-down child theme to server as a 'starter template' for future sites. Using the latest 2.0.1 framework.Just trying to simply change the default footer text, but not having a lot of success. I added the code per the snippet found at MyStudioPress:
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 }
While it does add the new line, it does NOT remove the default. So there are two copyright lines now.
- Did I miss something obvious? I copied & pasted from the code snippet.
- I also tried to use the shortcode [footer_copyright] instead of the year, but it just outputs the shortcode as-is. ?!?Thanks! Hoping things will get easier as I get more familiar...
October 24, 2013 at 3:49 am #68574Sridhar KatakamParticipantI tested that code snippet in Genesis Sample child theme v2.0.1 with Genesis parent theme v2.0.1 and it works fine.
October 24, 2013 at 4:12 am #68579jhguynnMemberLooks like you're going about this in the most pure way (manually coding what will become a starting template for future sites). But I just want to make sure you're aware of the Genesis Simple Edits plugin. Makes this easy as pie.
October 27, 2013 at 6:46 pm #69355emmajemmMemberWhere does the code snippet above need to be placed? I'm aiming for the same thing...
October 27, 2013 at 8:42 pm #69370Sridhar KatakamParticipantOctober 28, 2013 at 12:08 am #69409MealtogMemberWhy not run this plugin? http://wordpress.org/plugins/genesis-simple-edits/
October 28, 2013 at 5:24 pm #69545kennypressParticipantThanks for the help. Looks like the developer who helped first create this base child theme didn't add the line:
include_once( get_template_directory() . '/lib/init.php' );
Once I added that, things started working a bit better. Is that absolutely required and the 'best/most efficient' way to go about it??
And the reason I was doing it manually vs. using the plugin right now are:
A) thought it would be good to start learning the 'proper' way to do things so I know the syntax a bit;
B) worried about the plugin becoming outdated/incompatible on an update;
C) wasn't certain the plugin could do everything that may be needed for changing/overriding, which may result in some changes being in plugin and some in functions.php, which just may get confusing to see what's really going on.Let me know if any of my concerns about the plugin are unwarranted.
Thanks!
October 28, 2013 at 9:33 pm #69571Sridhar KatakamParticipantIf you are comfortable adding and editing functions.php that is the way to go. You will feel like you are in control.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.