HTML in pages.

JPMiddleton

New member
Hello,

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.....
 

HenrikHansen

Well-known member
I have also had problems with this HTML in pages, so now I use this addon:
http://xenforo.com/community/resources/how-to-show-a-post-in-a-page.306/

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

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 :)
 

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.
 

Jake Bunce

XenForo moderator
Staff member
This works in my testing:

Code:
<xen:h1>boogie</xen:h1>
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
 
Top