• 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]

LPH

Well-known member
#1
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:

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

<xen:hook name="header">
<div id="header">
    <xen:callback class="xenword_header"...
Read more about this resource...
 
#2
Hi,
I test your code, but i got this error :
HTML:
<!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">
<head>
<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>
</head>
<body></body>
</html>
 

LPH

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

LPH

Well-known member
#7
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 ;)