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
- 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. - 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
- session_start(), cookie handling , database connect in php @ top
- a header after
<body>
include using<?php include('header.php')?>
- headerprocessing.js script include in head tag (along jquery)
- 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
Post a Comment