Add WordPress header to XenForo [Deleted]


Well-known member
LPH submitted a new resource:

Add WordPress header to XenForo - Add a WP header to XenForo

Adding a WordPress header to XenForo usually involves looking at the WP source and copying the html into the correct XenForo template. Here is another possible solution.

Download the attached file and unzip.
Copy the header.php file into /library/xenword
Go to XenForo admin->templates
Find header template

Change the header template to:

<xen:edithint template="header.css" />

<xen:hook name="header">
<div id="header">
    <xen:callback class="xenword_header"...
Read more about this resource...


I test your code, but i got this error :
<!DOCTYPE html>
<html lang="fr-FR" xmlns:fb="" xmlns:og="" xmlns="">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title><br /> <b>Fatal error</b>: Call to a member function get() on a non-object in <b>/home/xxxxxx/public_html/wp-includes/query.php</b> on line <b>27</b><br /></title>


Well-known member
This is definitely a theme conflict. Have you tried a default WP theme to see if something else is happening?


Well-known member
Please try the default theme and see what happens. It may be a conflict with your theme.


Active member
This only works with a default theme.. No one uses the default themes.. I get the same error


Well-known member
This only works with a default theme..
With thousands of themes, and ways to build themes, I'm not surprised when there is a conflict.

Feel free to use a variation or use the WP HTML source code copied into the right templates. Painful but works ;)