Community Forums › Forums › Archived Forums › Design Tips and Tricks › Footer Credits Issue with Legacy Theme
- This topic has 5 replies, 5 voices, and was last updated 11 years, 5 months ago by
Brad Dalton.
-
AuthorPosts
-
April 9, 2013 at 3:31 pm #34361
wp guy
MemberI inherited a project and they want the footer credits modified. They want something added to it. Since the credits were already customized I figured I'd just modify it in the functions.php or maybe by clicking the "Genesis" tab. However, I could not find anything regarding how they modified the credits - nothing in the home.php, nothing in the Genesis tab, no plugins, etc...
So I put the code below into the functions.php. Nothing. Didn't change it. I put the code into my test site and it worked just fine. Any help appreciated.
This is the site: http://www.gelsnutrition.com/
And this is the code I put in the functions.php that didn't change anything:
/** Customize the entire footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer() {
?>
<p>© <p style="text-align: center;">© 2011 <a href="http://www.gelsnutrition.com/">Gels Nutrition</a> · All Rights Reserved · Designed by <a href="http://www.wordpressredesigned.com">Wordpress ReDesigned</a> · <a href="http://mydomain.com/wp-admin">Admin</a>Search Engine Optimization SEO by <a href="http://www.seoexcell.com">Seo Excell</a></p>
<?phpApril 9, 2013 at 4:00 pm #34376Ozzy
Memberi'd need FTP access to be of any help... maybe someone can chime in that's experienced something like this before.
April 22, 2013 at 9:16 am #36888SusanT
MemberI'm not sure if this will apply to you, but I just customized the footer credits on a site, and here's the code I that worked for me. I added this to the functions.php file.
/** Customize the entire footer */
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer(){ echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' · <a href="http://www.glennmeadowbb.com"/>Tracey Davis</a> | Website design by <a href="http://www.susantrabucchi.com/">Susan Trabucchi</a> Powered by the <a href="http://www.studiopress.com/themes/genesis/">Genesis Framework</a>';
echo '</p></div>';
}The site is http://www.glennmeadowbb.com
April 22, 2013 at 9:24 am #36890Brad Dalton
Participantwp guy: Your code has opening and closing PHP tags which will cause a problem plus your HTML isn't eco'd.
Modify Susan's with your own HTML and it should work.
Here's an excellent beginners guide to PHP http://devzone.zend.com/4/php-101-part-1-down-the-rabbit-hole/
You only use the PHP tags when adding PHP to template files. Not when adding custom functions to your child themes functions.php
September 12, 2013 at 3:11 pm #62152Harley130
MemberI tried to use the code snippet from SusanT's post above but I get the following error message: Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in /home/content/L/i/t/LittleredV/html/dhrphoto/wp-content/themes/landscape/functions.php on line 58
Line 58 is: { echo ‘<div class=”creds”><p>’;Using with the Landscape theme
Am I missing something?
September 13, 2013 at 12:56 am #62210Brad Dalton
ParticipantThe problem with copying code from a web page is the Apostrophes turn around causing errors.
Please see point 6 http://wpsites.net/wordpress-tips/reasons-code-doesnt-work-how-to-fix-it/
I suggest you install the Genesis Simple Edits plugin and customize the entire footer credits that way.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.