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

XF 1.3 Xenforo #header location?

Discussion in 'XenForo Questions and Support' started by Ablac, Aug 15, 2014.

  1. Ablac

    Ablac Active Member

    I'm trying to accesss the Xenforo #header div with my Wordpress Installation, and already have an Ajax code to pull just certain parts of the header, but index.php is just the template compiler, does anyone know where the actual Header Div is located? Or is there no way to pull just that Div from Xenforo?
  2. pegasus

    pegasus Well-Known Member

    XenForo does not leave its HTML code in the file system like you have been used to for years in Wordpress. You must access the compiled version of the template from XenForo's database, and pass it through XenForo's template renderers to get usable HTML. There is not an easy way to do this, because everything really is tied to index.php and all the outputs of various classes are designed to cascade into index.php in a particular way.

    That said, it is completely possible to do what you are asking. I have personally done something very similar in the past for custom site pages until XenForo 1.2 added a feature that let me route the requests through index.php and made it ... somewhat easier. That is not something you can really do with Wordpress.

    If you don't want to go through all the time of reverse engineering a bunch of XenForo to figure out how to get the output of 1 template into Wordpress, you might just want to copy and paste the content of the header template into a Wordpress node and then just use that. It won't be linked and won't be updated automatically if XenForo's header is, but it will be easier.

    I'm sure you already know you can look at the contents of various template's in XenForo's admin area, under Appearance > Templates.
  3. Ablac

    Ablac Active Member

    :( Copying the templates over doesnt work cause the xen:codes, Do you know if theres an import code to import the Xen codes into other stuff?
  4. Ablac

    Ablac Active Member

    I moved back to http://xenforo.com/community/threads/import-navigation-div-wordpress.80875/ as this question has been solved, and I am able to import the DIVs now.

Share This Page