Community Forums › Forums › Archived Forums › Design Tips and Tricks › Change Copyright attribution
Tagged: copyright code, footer
- This topic has 6 replies, 5 voices, and was last updated 12 years, 9 months ago by
Brad Dalton.
-
AuthorPosts
-
February 14, 2013 at 4:41 am #20276
Shookfoil
MemberI've been playing with my footer settings. I managed to use code to put Privacy Policy and Affiliate Disclaimer links in the footer, but when I tried to change the copyright to say Copyright (c) Hilton Copywriting 2013 I broke the theme and had to reinstall the theme.
I'm using Optimal Child theme and my site is http://hiltoncopy.com. Ideally I'd like the copyright text centred and the Privacy/Disclaimer on the right - but I'm not very clever with code and just getting these links stretched my skills.
This is the code I currently have:
/** Customize the credits */
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
function custom_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' · <a href="http://www.hiltoncopy.com/privacy-policy/">Privacy Policy</a> · <a href="http://hiltoncopy.com/disclaimer/">Affiliate Disclaimer</a>';
echo '</p></div>';
Thanks in advance.
Debra
February 14, 2013 at 4:50 am #20278Brad Dalton
ParticipantMany ways to do this:
Using php code http://my.studiopress.com/snippets/footer/
Or install the Genesis Simple Edits plugin
Or install the Genesis Simple Hooks plugin
Or you can create trhe HTML in your editor and paste it in using any of these plugins or the Genesis > Theme Settings > Header and Footer Scripts
February 19, 2013 at 4:18 pm #21484chikamiku
ParticipantHi Brad,
Thank you for the detailed explanation. I am having somewhat similar problem. copied the footer credit code from http://my.studiopress.com/snippets/footer/, made the necessary text related changes and then added at the end of the functions.php file. But then got a strange result. Both the edited credit and the original credit by studipress showed. How to handle that?
Thanks
February 20, 2013 at 12:15 am #21572Brad Dalton
ParticipantFebruary 20, 2013 at 12:00 pm #21705RonnyMac
MemberCan't say enough good things about using Genesis Simple edits plugin, and Genesis Simple Hooks plugin. The former is a good way to add a few customized items. The latter is a rich way to customize Genesis without wrecking the site. Master Simple Hooks and you go a long way to knowing Genesis.
ronnymac
—
Ron McElfresh
Honolulu, HI
—
http://mac360.com/
http://mcelfresh.org/
http://mcsolo.com/
http://pixobebo.com/
http://noodlemac.com/February 20, 2013 at 12:10 pm #21708charriott4
MemberSimple edits is definitely the way to go! I use it on all my sites
Web Designs By Chrissy | Twitter @designbychrissy
February 20, 2013 at 2:04 pm #21774Brad Dalton
ParticipantYes its a great way to learn about hooks and conditional tags as a stepping stone to writing custom functions and more advanced PHP coding.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.