{"id":1074,"date":"2017-11-09T10:23:47","date_gmt":"2017-11-09T10:23:47","guid":{"rendered":"https:\/\/firstsiteguide.com-copyright-notice\/"},"modified":"2023-10-04T04:12:15","modified_gmt":"2023-10-04T04:12:15","slug":"wordpress-copyright-notice","status":"publish","type":"post","link":"https:\/\/firstsiteguide.com\/wordpress-copyright-notice\/","title":{"rendered":"How to Add a Copyright Notice in WordPress","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"
Almost every website that you find on the Internet will have a copyright<\/a> notice which gives basic information about the site. Even though the law has changed and placing a copyright symbol won’t actually protect your work, there is an unwritten rule for web designers to put a notice in the footer of the website they have created<\/a>.<\/p>\n\n\n\n Usually, a copyright notice is a simple text that consists of just a few elements. To create one, you will need:<\/p>\n\n\n\n As we already told you, you are free to add anything you want. You don’t have to put a copyright symbol if you don’t want to, you may use a link to your notice or any other text that you like.<\/p>\n\n\n\n OK, we guess you’re not here to read about copyright notice itself but you want to know how to create one in WordPress<\/a>. Possibly, create one which will dynamically change so you don’t have to update your footer every year just to change the label. Let’s create one and stop worrying about a copyright notice in the future. If you don’t want to modify the code, you can use a plugin<\/a> to do the same job for you.<\/p>\n\n\n\n For example, if you are working with Twenty Seventeen theme, in the footer area you will find the HTML code which echoes “Proudly powered by WordPress” notice. Simply overwrite that code with this one:<\/p>\n\n\n If you haven’t changed anything in the code, your newly created copyright notice should look something like this:<\/p>\n\n\n Copyright \u00a9 2017 First Site Guide<\/strong> All rights reserved.<\/p>\n\n<\/div>\n\n\n If you only wanted to change the copyright notice, you’re done. In the next few lines, we’re going to explain the code provided above.<\/p>\n\n\n\n The function provided above searches for all posts in your WordPress directory. It gets the first one ever published and fetches its date. This part is important if you had started working on your WordPress project in the last few years. If so, the copyright notice will automatically write the year when you started and add the current year where necessary. If you have started the blog<\/a> this year, it will only display the current year.<\/p>\n\n\n\n After that, the function writes “Copyright” text followed by a well-known \u00a9 symbol and adds your blog name from your General Settings page. In the end, there will be “All rights reserved” text which you can of course change to whatever you want.<\/p>\n\n\n\n If you have a theme that is built on the Genesis framework, you already have everything you need in a single shortcode. Simply use the following shortcode to automatically generate and display the current year with some text before and after it:<\/p>\n\n\n [footer_copyright first=”2007″ before=”Text” after=”Text”]<\/p>\n\n<\/div>\n\n\n If you are not into customizing the code, there’s a simple solution in form of a free plugin that can do everything for you. OK, it won’t guess your personal information so you will still have to enter a word here and a word there, but you won’t have to wrangle the code that you probably hate so much.<\/p>\n\n\n\n PRICE: <\/strong>Free<\/a><\/p>\n\n\n\n
How to create a dynamic copyright notice<\/h2>\n\n\n\n
\n
function create_copyright() {\n$all_posts = get_posts( \n'post_status=publish&order=ASC' );\n$first_post = $all_posts[0];\n$first_date = $first_post->post_date_gmt;\n_e( 'Copyright © ' );\nif ( substr( $first_date, 0, 4 ) == date( 'Y' ) ) {\necho date( 'Y' );\n} else {\necho substr( $first_date, 0, 4 ) . \"-\" . date( 'Y' );\n}\necho ' <strong>' . get_bloginfo( 'name' ) . \n'<\/strong> ';\n_e( 'All rights reserved.' );\n}<\/pre>\n\n<\/div>\n\n\n
<\/pre>\n\n\n\n
\n
<?php create_copyright(); ?><\/pre>\n\n<\/div>\n\n\n
<\/pre>\n\n\n\n
\n
Genesis framework users:<\/h3>\n\n\n\n
How to create a copyright notice in your WordPress footer by using a plugin<\/h2>\n\n\n\n
Footer Putter plugin<\/h3>\n\n\n\n