Community Forums › Forums › Archived Forums › Design Tips and Tricks › Customising footer credits
Tagged: footer edits, genesis simple edits
- This topic has 6 replies, 5 voices, and was last updated 7 years, 6 months ago by EvoMao.
-
AuthorPosts
-
December 9, 2012 at 1:44 am #3949alliechynnaMember
Hi I'm trying to customise my footer credits. I've got this php to work so far but would like to add at the end powered by wordpress and login in link. Please can someone tell me what I need to add as when I try adding code to this code it comes up with an error.
/** 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://21ststreetdesigns.com">21ststreetdesigns.com</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}December 9, 2012 at 6:18 am #3980AnitaKeymasterUs this plugin instead - http://www.studiopress.com/plugins/simple-edits.
Love coffee, chocolate and my Bella!
December 9, 2012 at 3:43 pm #4030alliechynnaMemberThanks, but I'm trying to not use to many plugins on my site so would rather stick with PHP
December 9, 2012 at 4:20 pm #4047SusanModerator/** Customize the entire footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function 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">Login</a></p>
<?php
}August 17, 2016 at 3:07 am #191424Nicholas DixonMemberHi,
Why do I have 2 footer credits showing?
I am learning to build Genesis child themes from scratch without using the Genesis Sample theme as a starting point. I used the following code and don't understand why the 2nd footer credit shows. The snippet of code below should remove the default footer credit and replace it with the one which starts with Billys Blog. I used the Genesis Hook Guide plugin to confirm that I am using the correct Hook and (genesis_footer) at which to remove the function and I looked in the footer.php file inside the structure folder inside lib folder to confirm I am using the correct function (genesis_do_footer).
Billys Blog © Copyright 2016 | Login | Built by Web Design North Yorkshire
Copyright © 2016 · Scratch on Genesis Framework · WordPress · Log out
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'sp_custom_footer' );
function sp_custom_footer() {
?>
<p>Billys Blog © Copyright 2016 | Login | Built by WDNY</p>
<?php
}September 28, 2016 at 4:25 am #193801EvoMaoMemberI have the same problem, it's showing 2 credits in my footer, the snippets doesn't work i guess! Did you get a chance to fix this? Thx!
September 28, 2016 at 8:56 am #193817EvoMaoMemberFound a way to hide the original credit footer, add this line of code at custom.css
/* Hide the extra credit at footer*/
.site-footer .creds {
display: none;
}it should do the tricks. = )
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.