Adding php code before DocType
-
I need to include a bit of php code as the very first line on my blog pages. This code triggers a membership login and needs to appear before doctype on the page (I know this is not good coding, but I have no choice but to do it this way at the moment). I placed the at the top of the header.php file of my theme; however, two things are going on. 1. I cannot see the code when I view the page source (which seems odd to me) and 2. Regardless of not being able to see it in page source, the script does appear to be triggering in IE and Chrome, but not in Firefox. Am I doing this wrong by adding it to the header.php file? Any thoughts are appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding php code before DocType’ is closed to new replies.