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

XF 1.2 Which function adds the node classes to the body tag?

Discussion in 'Styling and Customization Questions' started by Stuart Wright, Jan 7, 2014.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    Hi folks,
    we want to add all the node classes to the body tag in our editorial pages.
    An editorial piece will be associated with a particular forum for the comments.
    So we have the associated forum ID.
    So which function to we call to insert the node classes into the body tag please?
    And is there an example of how to do it?
    Many thanks.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Vague because on mobile.

    Look in forum_view template for xen:container var

    Pretty sure one of them is something like $bodyClasses or similar.

    Then in your custom editorial container you obviously need to call the helper in the body class= attribute.

    You can just copy that from PAGE_CONTAINER.

    That's from memory. I'll double check later.
     
  3. Stuart Wright

    Stuart Wright Well-Known Member

    Thanks Chris. All the info you can share will help John get it together.
     

Share This Page