# Adding copyright text for WordPress blogs and pages

> Add a copyright notice to the bottom of your WordPress posts and pages by editing your theme files.

Source: https://helpcenter.ruachost.com/wordpress/guides/adding-copyright-text-for-wordpress-blogs-and-pages/

Adding a copyright notice to your WordPress site helps protect your content and establishes ownership. On **ruachost.com**, you can easily display copyright text at the bottom of your blog posts and pages by editing your theme files.

## Why Add Copyright Text?

- Provides proof of ownership of your content.
- Helps deter plagiarism and unauthorized use.
- Supports legal action if your content is misappropriated.

## Steps to Add Copyright Text

### 1. Backup Your Site

- Always back up your WordPress site before making changes to theme files.
- Alternatively, create a **child theme** to avoid losing edits during updates.

### 2. Edit the Theme Functions File

1. Log in to WordPress with an administrator account.
2. In the dashboard, go to **Appearance → Theme Editor**.
3. From the right‑hand column, select **functions.php**.
4. Scroll to the bottom of the file and add the following code:

   ```
   function text_under_blog($content) {
       if (!is_feed() && !is_home()) {
           $content .= '<p>Copyright &copy; ' . date('Y') . '&nbsp;' . get_bloginfo('name') . '</p>';
       }
       return $content;
   }
   add_filter('the_content', 'text_under_blog');
   ```
5. Click **Update File** to save changes.

✅ This will automatically display a copyright notice at the bottom of each blog post or page.

### 3. Verify the Changes

- Visit any blog post or page.
- Scroll to the bottom → You should see:

  ```
  Copyright © 2025 YourSiteName
  ```

> **Note:**
- Editing `functions.php` directly can break your site if done incorrectly.
- Always test changes on a staging site before applying them to production.
- For more flexibility, consider using a footer widget or a dedicated copyright plugin.
