Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
773 views
in Q2A Core by
I want to add some PHP code to the HEADER is their any guide lines to follow?
Q2A version: 1.5.4

2 Answers

0 votes
by
</head>
  <body>
<?php
code here
?>
  </body>
</html>
by
You are correct sometimes I forget I am not working on php or html pages.
0 votes
by
You need to use advance theme and override header() function and place any php code you want to add. Something below

function header(){

qa_html_theme_base::header();

//here your php code..

}

but make sure in this case your php code will start right after default header code so you need to work out to get the result you want. But method would be the same.
...