Bard College at Simon's Rock: the Early College
  1. Home
  2. Guide
  3. How To
  4. Editors
  5. Admin
  6. Insert Code

Insert Code

Customize pages by adding raw code.

In the sourcecode view, the templates have a space to drop in raw code. At the top of the document, there is space to add code before the closing head tag, after the opening body tag, and before the closing body tag. Add whatever code should be outputted between the appropriate tag.

<headcode></headcode> <!-- before closing head tag -->
<bodycode></bodycode> <!-- after opening body tag -->
<footcode></footcode> <!-- before closing body tag -->

 

The code insert is used on Forms and Academics Sort

<doccode>

There is also the ability to add code at the top of the document, prior to the doctype declaration. 

<doccode>
  <?php session_start();
    $_SESSION = array();
    session_regenerate_id(true);
  ?>
</doccode>

 

  1. Add <doccode></doccode> at the top of the document. 
  2. Then add whatever code should be output between the tag.