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

HTML in pages.

Discussion in 'XenForo Questions and Support' started by JPMiddleton, Jul 30, 2012.

  1. JPMiddleton

    JPMiddleton New Member


    I've just created a new page and i'm trying to add some content using HTML.

    When I use tags such as <h1> and <strong> it doesn't appear to product anything, nor does it recognise "&nsbp;" for some reason.

    I checked out the manual, and it offers code such as <zen:h1> but that didn't work either.....
  2. HenrikHansen

    HenrikHansen Well-Known Member

    I have also had problems with this HTML in pages, so now I use this addon:

    It takes 5-10 minutes to set up for each page.
    Create a forum with non-visible node to use for content for your pages and only you have access to view and edit.
    Now you can use BBcodes and your normal forum editor to edit your pages. Eventually also downlaod the BB code manager in resources.
    JPMiddleton likes this.
  3. JPMiddleton

    JPMiddleton New Member

    Thanks :)

    If i'm honest I would rather use HTML though for SEO reasons. But if I don't find a way i'll use your solution, thanks :)
  4. HenrikHansen

    HenrikHansen Well-Known Member

    OK, remember you can "mix" in template HTML in page options the code that gets your post content and eventually other HTML you want to add. I do not know if that helps.
  5. HenrikHansen

    HenrikHansen Well-Known Member

    Have you tried to insert H1 lige this ?
    <xen:h1>TEST h1</xen:h1>
  6. Andy.N

    Andy.N Well-Known Member

  7. JPMiddleton

    JPMiddleton New Member

    Yup, i tried that too.. made no difference...
  8. JPMiddleton

    JPMiddleton New Member

    Thanks Andy, I did in fact use the page options tab.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This works in my testing:

    This is a XenForo function which passes the value to the h1 tag in the container (which is outside of your page HTML).

    Screen shot 2012-07-30 at 7.07.26 PM.png

Share This Page