I want to add the year to the copyright at the bottom of the page (after the word Copyright) and attach the phrase - "All rights reserved" to the end. How do I do this?
Copyright
13 posts from 7 voices-
Posted 10 months ago #
-
Hi,
Open footer.php and add this
<?php echo date("Y") ?>after this line
<?php _e('Copyright','avia_framework'); ?>Regards,
MyaPosted 10 months ago # -
Thanks Mya. That took care of the date. Is there an easy way to attach a phrase after the blog title?
Posted 10 months ago # -
Hi,
We're still in the footer correct? If so, then all you need to do is this:
<span class='copyright'>© <?php _e('Copyright','avia_framework'); ?> - <a href='<?php echo home_url('/'); ?>'><?php echo get_bloginfo('name');?></a> Enter your phrase here. <?php echo $kriesi_at_backlink; ?></span>Regards,
MyaPosted 10 months ago # -
Hi Mya, can you explain how that backlink works?
<span class='copyright'>© <?php _e('Copyright','avia_framework'); ?> - '><?php echo get_bloginfo('name');?> Enter your phrase here. <?php echo $kriesi_at_backlink; ?></span>
Posted 10 months ago # -
You can change the content of the $kriesi_at_backlink variable by using following filter function - add it to the bottom of functions.php and change the return value to any text of your choice:
add_filter('kriesi_backlink', 'inoplugs_backlink'); function inoplugs_backlink() { return " - Webdesign by XXX"; }You need to change the text between the "" signs.
Posted 10 months ago # -
Thanks!
Posted 10 months ago # -
Hey,
Glad Peter and Mya could help you. :)
Regards,
IsmaelPosted 10 months ago # -
Hey Guys,
I tried editing my footer to have the "Copyright + Year + All rights reserved." based upon the information above. I put in the following code and it still shows the same "Copyright - Hutzel Media Group" as it did before. No change. Can you help?
<span class='copyright'>© <?php _e('Copyright','avia_framework'); ?> <?php echo date("Y") ?> - <a>'><?php echo get_bloginfo('name');?></a> All rights reserved. </span>Posted 7 months ago # -
Hey guys,
I guess it just took a while for the change to actually take effect. As I was making other edits on my site, I noticed the change had taken place. Thanks for the info.
One question I did have, however, was how would I go about changing the URL that the company name links to? (in the copyright line of text)
Posted 7 months ago # -
Hi hutzelm,
You can treat it just like a normal html link and ignore the php. So:
<span class='copyright'>© <?php _e('Copyright','avia_framework'); ?> - <a href="#"><?php echo get_bloginfo('name');?></a><?php echo $kriesi_at_backlink; ?></span>Where the # sign is the url you want to use.
Regards,
Devin
Posted 7 months ago # -
Worked great!
Thanks!
Posted 7 months ago # -
Great! I'm gonna go ahead and close this topic :)
Regards,
Devin
Posted 7 months ago #
Topic Closed
This topic has been closed to new replies.














