• Home
  • WordPress
    • How To
    • Plugins
    • Themes
      • Genesis
      • Themify
      • Mysite myway
    • Security
    • Developer
    • Teaching
    • Conference
    • Chat
  • Blog
  • About
  • Freelance
    • Plugins
    • Teaching
    • Need help?
    • CV og ref.
  • Contact

Easy Web Design Tutorials

WordPress Tutorials and more

  • Home
  • WordPress
    • How To
    • Plugins
    • Themes
      • Genesis
      • Themify
      • Mysite myway
    • Security
    • Developer
    • Teaching
    • Conference
    • Chat
  • Blog
  • About
  • Freelance
    • Plugins
    • Teaching
    • Need help?
    • CV og ref.
  • Contact

1 December - 2016 By Paal Joachim 1 Comment
Last updated on: January 17, 2018

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.)

Adding copyright information to the footer

Adding copyright information to the 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 this:

  • Email

Categories: Developer, Featured, How to, WordPress

Paal Joachim Romdahl

I enjoy teaching and creating tutorials. As well creating web sites.
I help people gain WordPress knowledge through my easy to follow tutorials and specialized training. Contact me for more information on how I can improve your WordPress skills and to help get your web site quickly up and running.

Comments

  1. java interview questions says

    15 February - 2017

    I am looking for this from long time.Thanks

    Reply

Leave a Comment Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2021 · By Easy Web Design Tutorials · Built on the Genesis Framework · WordPress · Log in · ⇪

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.