Community Forums › Forums › Archived Forums › Design Tips and Tricks › Magazine theme – change footer text
Tagged: magazine theme
- This topic has 33 replies, 2 voices, and was last updated 11 years, 2 months ago by laura.
-
AuthorPosts
-
January 16, 2013 at 5:49 pm #12468lauraMember
Can someone point me in the right direction for changing the default footer text "COPYRIGHT © 2013 · MAGAZINE THEME ON GENESIS FRAMEWORK · WORDPRESS · LOG OUT" to personalize it for my site?
Thank you!
January 16, 2013 at 5:56 pm #12471SusanModeratorI recommend Genesis Simple Edits: http://wordpress.org/extend/plugins/genesis-simple-edits/
Otherwise, Try this: http://my.studiopress.com/snippets/footer/
January 16, 2013 at 6:57 pm #12493lauraMember@ susan - thank you!
Now this is my first time writing any code, so I want to check first to make sure I dont break anything:
I want to display: Copyright (copyright symbol) 2013 - Mom Goes Online - All rights reserved
So I would put this in (I have bolded the changes):
/** 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://mydomain.com">Mom Goes Online</a> · All rights reserved
;
echo
'</p></div>'
;
}
Is this correct?
And if so - where do I put this code?
Thank you so much for your guidance!
January 16, 2013 at 6:59 pm #12494lauraMemberOops - that did not paste well. I will try again
/** 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://mydomain.com">Mom Goes Online</a> · All rights reserved';
echo '</p></div>';
} */
January 16, 2013 at 7:02 pm #12496SusanModeratorReplace http: mydomain.com with your site's URL (no spaces)
The code will go into your functions.php file. Technically, you can put it anywhere in the file after this:
<?php /** Start the engine */ require_once( get_template_directory() . '/lib/init.php' );
But, I usually put any changes at the end of the functions file - it makes it easier to find later...
January 16, 2013 at 7:05 pm #12497SusanModeratorAlso - to help you with pasting code into this forum in the future, refer to this:
http://www.studiopress.community/faq/#codeJanuary 16, 2013 at 7:14 pm #12499lauraMember@ susan:
I just added the following right at the end of the functions.php file - but it does not work: now all I get is a complete blank screen 🙁 So I obviously have an error in my code:
/** Functions added by Laura Vermont */
/** Customize the credits in the footer */
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://momgoesonline.com">Mom Goes Online</a> · All rights reserved';
echo '</p></div>';
}
January 16, 2013 at 7:17 pm #12500lauraMemberI removed what I added and re-clicked on 'update file' - but everything is still blank 🙁
January 16, 2013 at 7:22 pm #12501SusanModeratorYou'll need to upload a fresh copy of your functions.php file into the theme folder on your hosting site.
Also, if you'd prefer not to mess with your functions.php file (a lot of people prefer not to touch it), then I highly recommend the simple edits plug-in - it will allow you to customize the footer without touching your file.
January 16, 2013 at 7:26 pm #12503lauraMemberI will keep the plugin in mind for the future - but it is a bit late for that now.
I cannot see anything anymore in WP admin since I included and then took out the changes, except for style.css. Everything else returns a blank screen.
I made the changed in the editor section in wp admin > appearances > editor. In there I selected functions.php and then added the code at the end, as you suggested. Once I clicked 'update file' everything went blank. I then removed the code I had added (by going back through the browser back button), re-clicked 'update file' . But everything is still blank.
WHat do I need to do to fix this?
January 16, 2013 at 7:32 pm #12505SusanModeratorYou need to go into the theme folder in your hosting site. Upload a fresh copy of your functions.php file.
January 16, 2013 at 7:36 pm #12507lauraMemberOk - I have opened an ftp connection to my host.
I am a total novice though, so could you please let me know what my theme folder is called, and where I can find this functions.php file I need ot upload?
I made the changes in the wp-admin dashboard, and I thought that made the changes directly onto the host?
January 16, 2013 at 7:39 pm #12509SusanModeratorIt does make the changes to your host, but if there is an error, and you get the white screen, you have to go to your hosting site.
wp-content/themes > Magazine > functions.php should be the path.January 16, 2013 at 7:44 pm #12510lauraMemberOK - I found the file, thank you!
Now what do I do with this file?
January 16, 2013 at 7:45 pm #12511SusanModeratorYou will need to upload a new version of the file to replace what is in there. You can grab a fresh copy from your zip file.
January 16, 2013 at 7:45 pm #12513SusanModeratorJust the functions.php file - you don't need to replace the whole folder.
January 16, 2013 at 7:49 pm #12515lauraMemberOK - will give that a go!
PS - I know for you this is a piece of cake, but my heart is pounding 🙂
January 16, 2013 at 7:52 pm #12516SusanModeratorBelieve me - I know the feeling!
January 16, 2013 at 8:17 pm #12520lauraMemberPffff ... I'm back online 🙂
Should I try to do it through the plugin you recommended?
January 16, 2013 at 8:18 pm #12522SusanModeratorYes, definitely!
-
AuthorPosts
- The topic ‘Magazine theme – change footer text’ is closed to new replies.