• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#" xmlns="http://www.w3.org/1999/xhtml">
<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
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 ;)