• Resolved davidwjw

    (@davidwjw)


    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

    (@bungeshea)

    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

    (@davidwjw)

    Thanks for the reply Shea.

    So my theme is ‘The7’. Within the head of my theme there is this 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

    (@bungeshea)

    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

    (@davidwjw)

    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.