Tagged: , ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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?

    #86833

    Hi,

    Open footer.php and add this

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

    after this line

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

    Regards,

    Mya

    #86834

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

    #86835

    Hi,

    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>

    Regards,

    Mya

    #86836

    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>

    #86837

    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.

    #86838

    Thanks!

    #86839

    Hey,

    Glad Peter and Mya could help you. :)

    Regards,

    Ismael

    #86840

    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>

    #86841

    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)

    #86842

    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.

    Regards,

    Devin

    #86843

    Worked great!

    Thanks!

    #86844

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

    Regards,

    Devin

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

The topic ‘Copyright’ is closed to new replies.