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

XF 1.1 How Do You Comment Out A Code in Template?

Discussion in 'XenForo Questions and Support' started by DRE, Mar 17, 2012.

  1. DRE

    DRE Well-Known Member

    For instance, I want to comment out the sidebar but leave the sidebar stuff in there just in case.
  2. Itworx4me

    Itworx4me Well-Known Member

    Breixo, CRDeveloper and DRE like this.
  3. DRE

    DRE Well-Known Member

  4. Brogan

    Brogan XenForo Moderator Staff Member

  5. Radi

    Radi Member

    9. How do I comment in a template to remove existing code or add notes?
    This content is commented out
    Note that using <xen:comment> will prevent the content from being output (rendered) altogether, so it won't show even when viewing the page source.​

    Does that mean that the code between the comment will not be executed? Meaning that if I have an error in the code, the code will just be ignored and no run?
  6. Brogan

    Brogan XenForo Moderator Staff Member


Share This Page