Tagged: Copyright date, footer
- This topic has 6 replies, 4 voices, and was last updated 8 years, 7 months ago by Theme Horse Support Team.
-
AuthorPosts
-
September 5, 2015 at 5:56 pm #27986AlfredParticipant
Hi,
In the forum we’re told to replace
[the-year] [site-link]
with'.attitude_the_year().' ' .attitude_site_link().'
Well, I tried it and it doesn’t work, most certainly because I don’t know enough about PHP syntax. Here is the Attitude’s child functions.php I want to fix:
<?php // Remove old copyright text add_action( 'init' , 'sfs_remove_copy' , 15 ); function sfs_remove_copy() { remove_action( 'attitude_footer', 'attitude_footer_info', 30 ); } // Add my own copyright text add_action( 'attitude_footer' , 'sfs_footer_info' , 30 ); function sfs_footer_info() { $output = '<div class="copyright">'.'Copyright © [the-year] Daniel Corbeil | <a href="http://danielcorbeil.com/contact/">Contact</a> '.'</div><!-- .copyright -->'; echo do_shortcode( $output ); }
Can you please tell me exactly how to modify it in order to get the current copyright year? As you can see, I don’t want a site link, but rather a contact link.
Thank you for your help.
September 6, 2015 at 9:12 pm #28012AlfredParticipantOK. Finally got it with the proper PHP punctuation. The last line of code needs to be:
$output = '<div class="copyright">'.'Copyright © '.attitude_the_year().' Daniel Corbeil | <a href="http://danielcorbeil.com/contact/">Contact</a> '.'</div><!-- .copyright -->'; echo do_shortcode( $output ); }
Problem solved.
September 7, 2015 at 3:30 pm #28043Theme Horse Support TeamKeymasterGreat! 🙂
September 14, 2015 at 7:27 am #28224landile.xParticipantHi I really love ur theme very much, can we edit footer of themes to erase “Theme By Theme Horse” “Powered by WordPress” and another link to wordpress?
Thanks!
September 14, 2015 at 8:02 am #28228Theme Horse Support TeamKeymasterSeptember 28, 2015 at 11:23 am #28795fabio1rstParticipantHello.
I find this template also really great! Is this feature (changing the footer) guaranteed in the Pro version included?
Is it legal to use Attitude Pro commercially and change the footer?
Thanks for your help?
September 29, 2015 at 7:38 am #28816Theme Horse Support TeamKeymasterHi Fabio1rst,
Yes you can change the footer information in the Pro version.
Yes you can use it into the multiple site of yours but you will not get support for all the sites.Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.