Adding copyright information to the bottom of the page

Copyright information

Most often we add some copyright information at the bottom of the page that says something about year, made by, made with and perhaps a link to the wp-admin.

I will use the date, site_url() and admin_url() to accomplish what I need.

Here is an example I used for the site Beans WordPress Framework. (It is a tutorial site for the Beans framework.)

Copyright info in footer
Copyright info in footer
// COPYRIGHT area
function beans_child_footer_content() {
?>
<div class="tm-sub-footer uk-text-center"> // tm is the theme footer and uk is UiKit.
 <p>© <?php echo date('Y'); ?>
 A Beans community project initially started by 
<a href="<?php echo site_url();?>" target="_blank" title="A Beans WordPress Framework Demo"> Paal Joachim.</a> 
Made with the <a href="https://www.getbeans.io/" title="Beans Framework for WordPress" target="_blank">Beans WordPress Framework</a>. 
Go to <a href="<?php echo admin_url();?>" title="Go to the WordPress Backend" /><span class="dashicons dashicons-dashboard"></span></a></p>
 </div>
 <?php
}

<?php echo date(‘Y’); ?> = Shows the existing year. Codex: the_date
<?php echo site_url();?> = Shows the site url. Codex: site_url
<?php echo admin_url();?> =Shows the admin url. Codex admin_url

Find the class name for your theme for where the copyright information is located. Right click the existing copyright information in your browser and select Inspect. Then look at the bottom area showing the HTML and to the right the CSS. Move the cursor around in the html area so it is hovering over the copyright information. Then look at the CSS name.

Here is also a code suggestion for Genesis themes:

// Change Genesis Footer Credit Copyright line
add_filter( 'genesis_footer_creds_text', 'footer_copyright_text' );
function footer_copyright_text () {
 ?> <p>© <?php echo date('Y'); ?>
<a href="<?php echo site_url();?>" target="_blank" title="A custom Genesis theme"> 
Customized Altitude Pro Theme</a> 
Made by <a href="https://www.easywebdesigntutorials.com/easywebdesigntutorials.com/" title="Paal Joachim Romdahl" 
target="_blank">Joachim</a>. 
<a href="<?php echo admin_url();?>" title="Go to the WordPress Backend" />
Login  <span class="dashicons dashicons-dashboard"></span></a></p>
 </div>
 <?php
}

I really got some nice help looking at:
https://stackoverflow.com/questions/18095128/how-to-use-site-url-for-images-in-wordpress-with-php-coding
and https://stackoverflow.com/questions/2584706/wordpress-where-the-admin-url-is-set

For Genesis theme code I received some help from this tutorial:
wpbeaches.com/changing-genesis-theme-copyright-line-footer-wordpress/

Share the article:

Leave a Reply

Your email address will not be published. Required fields are marked *