Tagged: , ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
  • #15262

    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?



    Open footer.php and add this

    <?php echo date("Y") ?>

    after this line

    <?php _e('Copyright','avia_framework'); ?>




    Thanks Mya. That took care of the date. Is there an easy way to attach a phrase after the blog title?



    We’re still in the footer correct? If so, then all you need to do is this:

    <span class='copyright'>&copy; <?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>




    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>


    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.





    Glad Peter and Mya could help you. :)




    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>


    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)


    Hi hutzelm,

    You can treat it just like a normal html link and ignore the php. So:

    <span class='copyright'>&copy; <?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.




    Worked great!



    Great! I’m gonna go ahead and close this topic :)



Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Copyright’ is closed to new replies.