php - Add WordPress blog to site while keeping my existing header and scripts -


the problem

my website has javascript , php include on each page allow login , cookie processing persistent login, using header changes if user logged in, , these work successfully. add pages contain wordpress blogs/forums, while keeping header , processing @ top. there way this? understanding wordpress controls entire page own <head> , <body> tags , info. backup plan have blog/forum pages rogue pages separate header links main site.

what i've tried

  1. figure out wordpress sends html , modify page: use network of include() statements decide show, , i'd concerned change in wordpress admin panel overwrite changes make, or wordpress control panel code makes changes adding code before/after line, , i'd somehow break that.
  2. put blog pages in iframe: prevents blog permalinks , seems undercut seo benefit of blog. if around kind of .htaccess hackery, i'm concerned having page in iframe cause browsers block wordpress functions security reasons.

code want include

  1. session_start(), cookie handling , database connect in php @ top
  2. a header after <body> include using <?php include('header.php')?>
  3. headerprocessing.js script include in head tag (along jquery)
  4. css file header styling

i'm stumped , can't seem find google - appreciated. thanks!

you'd better off join wordpress opposed fighting it.

wordpress provides dozens of ways access , manipulate page content. easiest of add hooks wp_head , wp_footer in theme's function.php.

i'd encourage read wordpress theme development.


Comments