custom meta tag

Posted in: Newspaper
Post count: 14

I need to add some custom meta tag between <head> and </head>
I prefer not to do it directly in the template file to avoid to loose it with the next update.

thanks

Post count: 9544

Couple of ways.
Some hooks in the theme panel; or typically make a plugin which added the function via enqueue to the WP header.

Post count: 14

I’m sorry, if I could make a plugin, probably I wouldn’t purchase a “no coding needed” theme.
anyone else?

Post count: 9544

Well, if you don’t want to use the Custom Code option in the theme admin panel, the only way to do that is either with a plugin (from wordpress.org repo, or one you make your self, since these survive theme updates), or manually editing the theme files, such as header.php or adding a function hook into the enqueue at bottom of your functions.php file.

I don’t work here, just a suggestion.

  • This reply was modified 9 years by simchris.
Post count: 14

using custom code would be fine, but it add the code “at the end of the page”, and I need to add the metatags between <head> and </head>.
Anyway, I found a workaround: I can add the meta in Analytics section, and it will displayed just before the </head> tag.

thanks

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.