Title: Code Snippets Overrule Theme Files?
Last modified: December 18, 2023

---

# Code Snippets Overrule Theme Files?

 *  Resolved [davidwjw](https://wordpress.org/support/users/davidwjw/)
 * (@davidwjw)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/)
 * Hello I was wondering if I add a code to the ‘head’ area using Code Snippets 
   plugin, can it overrule the code in my theme head section?
 * The code in my theme ‘head’ at the moment is still showing and not the Code Snippet
   code. Hope this makes sense 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/#post-17295508)
 * This is really down to what theme you are using, and what type of snippet you
   are trying to add. Can you provide some more information with examples?
 *  Thread Starter [davidwjw](https://wordpress.org/support/users/davidwjw/)
 * (@davidwjw)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/#post-17324548)
 * Thanks for the reply Shea.
 * So my theme is ‘The7’. Within the head of my theme there is this code:
 *     ```wp-block-code
       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=0, user-scalable=0">
       ```
   
 * I would like to change this but using your plugin. I have added it as a HTML 
   snippet and applied it to Display in site <head> section, but it doesn’t override
   the theme file.
 * Is this something your plugin can achieve? Thanks in advance.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/#post-17423279)
 * Code Snippets can add to the site header, but it can’t remove things from theme
   files automatically, unless they’re controlled by some sort of action or filter
   hook. As I said, it really comes down to what sort of theme you are using.
 *  Thread Starter [davidwjw](https://wordpress.org/support/users/davidwjw/)
 * (@davidwjw)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/#post-17452099)
 * Thanks Shea for the answers.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code Snippets Overrule Theme Files?’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [theme-files](https://wordpress.org/support/topic-tag/theme-files/)

 * 4 replies
 * 2 participants
 * Last reply from: [davidwjw](https://wordpress.org/support/users/davidwjw/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/code-snippets-overrule-theme-files/#post-17452099)
 * Status: resolved