Copyright info in footer

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
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="" 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>

<?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="" title="Paal Joachim Romdahl" 
<a href="<?php echo admin_url();?>" title="Go to the WordPress Backend" />
Login  <span class="dashicons dashicons-dashboard"></span></a></p>

I really got some nice help looking at:

For Genesis theme code I received some help from this tutorial:


Leave a Reply

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