• Resolved tnorberg

    (@tnorberg)


    I have installed the NextGen Gallery plugin and I cannot seem to get to validate with another of my plugins enabled (Syntax Highlighter plugin for wordpress). It gives me the error when I use https://validator.w3.org to process:

    Line 852, Column 39: document type does not allow element “meta” here

    <meta name=’NextGEN’ content=’1.2.1′ />

    My site is:
    https://www.thomasnorberg.com
    I have already written the author for the Sytax Highlighter and they said it was a NextGen problem.
    Thank you and any response would be awesome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Look into your html code <meta name=”generator” content=”WordPress 2.7.1″ /> is added two times and <meta name=’NextGEN’ content=’1.2.1′ /> three times, check the behaviour with the default theme

    Thread Starter tnorberg

    (@tnorberg)

    Line 556, Column 76: document type does not allow element “meta” here

    …-><meta name=’NextGEN’ content=’1.2.1′ />

    So I get the same thing and generated four times. <meta name=”generator” content=”WordPress 2.7.1″ /> came up once. I know that when I deactivate the sytax highligter (SyntaxHighlighter Evolved-I forgot to mention earlier) plugin it goes away and validates but when I enable it it comes back. And vice versa with the other plugin.

    I love both of these plugins and its not the end of the world if it doesn’t validate I guess, but it did before I enabled the two together.

    And thank you for the prompt response!

    NextGEN Gallery is using the wp_print_scripts hook to output a <meta> tag rather than the wp_head hook it should be using. It improperly assumes that that hook will always be fired in the <head>. While that’s true for a default install, my plugin uses the print scripts function elsewhere (in the footer) to output my plugin’s scripts.

    Thanks Viper for point this out, I will change that…

    Thread Starter tnorberg

    (@tnorberg)

    WOW Thank you so much it fixed it and I was wondering if you guys might be able to answer a plugin question in regard to saving options. If not thats cool.

    I have developed a plugin that I think is pretty cool…but when I save my options from the admin options page, I have saved them to a text file so that I can access them from another file. There has to be a better way…I looked but I don’t really understand some of the information that is out there. Either that or the information that I have seen is not sufficient.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: NextGEN Gallery] document type does not allow element “meta” here <meta name=’NextGEN’’ is closed to new replies.