Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Inserting custom HTMl just within BODY tags

edited February 2007 in Vanilla 1.0 Help
Hi, i figured this out in an earlier version of Vanilla but the structure is quite different in the latest install. I am looking to add a new DIV tag just within the BODY tags of the pages output by vanilla. So i would have <body id="DiscussionsPage" > <div class"forumholder"> Rest of page. </div> </body> I know my way around basic php but what files do i edit to place this code? I am trying to make the forum fit in with the style of the rest of the page. Thanks, Alan

Comments

  • I think it could be done by a theme change or an extension. theme files are located under themes. Make a new folder folder for your edited theme files and copy the correct one into that folder and edit to suit your needs.
  • The head.php has the start of the body tag.
  • but yo probably want your div inside the content div no?, unless it would be a sort of heading.
  • No directly within the Body Tag. I want to insert standard header with site navigation and the footer from the rest of the site. I will look at head.php. Thanks. Any idea of footer?
  • probably foot.php :) Ok thanks guys.
  • Actually it is page_end.php What i have done is put an include in each file for the header and footer to minimise the amount of editing i do to the forum code itself. Thanks for the replies.
  • Hi Guys, this is the end result! http://www.whenismywedding.com/forum Feedback welcome.
  • looks pretty cool.
This discussion has been closed.