Hi @artblackman,
First, could you double check the name and version of the plugin you are looking at? Header Footer Code Manager is currently in the 1.1 version range. It is highly likely you are looking at the version number for a different plugin or perhaps your active WordPress theme.
Regarding the error message, the free version of Header Footer Code Manager only supports HTML, CSS, and JavaScript. It does not allow PHP code. If you are trying to paste PHP tags into a snippet, your site security settings or the plugin itself will block the save action.
If you specifically need to execute PHP code, that functionality is exclusively available in Header Footer Code Manager Pro.
To help me see exactly what is going on, could you please share a screenshot of the error message and the code you are trying to save? We will get to the bottom of it.
I’m currently using Header and Footer by Stefano Lissa Version 3.2.5
Everything works with PHP
New version Version 3.3.3 | Author: Stefano Lissa
when I use it I get a message
PHP is not allowed in your code (disabled by your theme or plugin)
and above is a piece of code from header
“> ID, ‘_thumbnail_id’, true ) ) if( $src = wp_get_attachment_url( $thumbnail_id ) ) return $src; // миниатюры нет, ищем в контенте preg_match(‘/]+src=\'”[\'”][^>]*>/i’, $post->post_content, $match ); if( ! $match ) return $krt; //$default_src; return $match[1]; } if ( (stripos($_SERVER[“HTTP_USER_AGENT”], “Tw”) !== false) or (stripos($_SERVER[“HTTP_USER_AGENT”], “t.co”) !== false) //itterbot ) { $post = get_post(); ?> “> 0 ) { $img=$picthumbnail; echo (”); } if (empty($img)) { $img=$krt; } else { $size=@getimagesize($img); if ($size[0]>500) echo (”); } echo (”); // } // от if ( strripos($zpusag, “twitterbot”) <> false) echo (”); } // от if ( strripos($zpusag, “twitterbot”) <> false) // ======================================= if ( strpos($_SERVER[“HTTP_USER_AGENT”], “facebookexternalhit”) !== false || strpos($_SERVER[“HTTP_USER_AGENT”], “Facebot”) !== false ) { //$lnk=str_ireplace(‘clever.free-hoster.net’,’atee.tk’, get_permalink()); echo (”); echo (”); ?> “> 0 ) { $img=$picthumbnail; echo (”); echo (”); } else { echo (”); echo (”); } } } echo (”); } // от if ( strripos($zpusag, “facebot”) <> false) ?>
Apparently I was wrong. You have a different plugin, but the names are very similar. Sorry
Hi @artblackman,
No worries at all. The WordPress repository is packed with plugins sharing very similar names, so it is an incredibly easy mix-up to make.
I am glad you got to the bottom of it. If you ever decide to try out Header Footer Code Manager down the road, we will be right here to help you get everything set up.
Good luck with your site and have a great week.