Wordpress plugin for inserting code before <head>
I have some code in my header.php before the <head> starts, which defines some session variables.
I'm trying to clean up my site and would like to have no changes to the theme files, and don't want to use a child theme.
Do you know a wordpress plugin that will let me insert code before the <head>?
I've tried to insert it in the beginning of the pages themselves via a header/footer plugin, but that doesn't seem to work (the sessions are not created). Would that be possible if I change the code?
The code looks like:
<?php
session_start();
//creating sessions
?>
As you can guess I'm not a php guru.
Thanks in advance.
Best regards,
Thomas
Tired of fighting with WordPress to build the site you want? You shouldn't have to spend hours tweaking your website to bend to your will. Take the next step in your journey to WordPress mastery with wordpress4anyone.com
Tired of fighting with WordPress to build the site you want? You shouldn't have to spend hours tweaking your website to bend to your will. Take the next step in your journey to WordPress mastery with wordpress4anyone.com
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."