Includes in Your Template

Don't think of a web page as a single page of HTML. That's what a search engine sees, yes. And your human visitors see a single page in the browser, yes. But...

You "assemble" a web page like you would a jigsaw puzzle. The main piece, your HTML template file, contains the overall HTML structure of every page. You enter the page-specific information into it.

This file also contains places for you to place sitewide pieces of HTML (or other coding) into it. Your selected template comes with SBI! Include tags coded into masterTemplate.html.

This help discusses what to put into each Include, or, in some cases, what's already in there.

When you view masterTemplate.html in your browser or through your HTML editor's Preview function, you'll see the actual tag code of each SBI! Include (ex., ***z-below-paragraph-1.shtml***) instead of seeing the contents of the SBI! Include file. So...

To see what your page will look like with the content of all your Includes displayed, go to the WebFTP section of Site Central and click on the Quick Preview It! button. Follow the instructions on using it to view any page of your site before you upload it.

Quick Preview It! (QPI!)

Quick Preview It! shows you the masterTemplate.html properly. All images, media files and SBI! Includes will appear on the page. Functionality tags (ex., ***SOCIALIZEIT***, Face It!, Form Build It! and Content 2.0 tags) do not display with QPI!.

Directions for Use
  • Copy the third-party code you want to add to the Include tag.
  • Paste the code into the z-end-of-head.shtml file between the comment tags, and/or type your meta tags or other code.
  • Save the file.
  • Upload the file with other files. Or use Quick Upload It! to upload it after editing it.

***z-end-of-head.shtml***

You'll find this SBI! Include tag just before the </head> tag.

In other words, put page-specific information inside the masterTemplate.html's <head> section. This means you keep the <title> and both <meta> tags where they are, as you'll need to add different information to those tags for each page you build.

But we suggest that you remove this line of code in masterTemplate.html from the <head> section, cutting-and-pasting it into your ***z-end-of-head.shtml*** Include file (between the two comment tags)...

<link href="support-files/style.css" rel="stylesheet" type="text/css">

As mentioned above, you can add, change, or remove any other sitewide information or coding here at any time. (But page-specific information does not belong in this Include.)

Note

As mentioned above, if you're going to add Javascript references to this Include, place them after your CSS file reference. Otherwise, your site's design will not start loading until all the JS is finished loading. And Google Analytics code should be last.

Another Note: If you have two sites with AdSense ads, and want to track both sites in one Google Analytics account, Google provides special code that must go before the AdSense and Analytics code on every page of the second site. This Include is the location for it. The code will not appear on the page, but will allow Analytics to track all the pages properly.


All remaining SBI! Includes are between the <body> and </body> tags of the file...

Horizontal Navigation

Directions for Use
  • If you want the horizontal navigation at the top of your header, do nothing.
  • If you want the navigation in a different location, cut (Ctrl-X/Command-X) all the code between the comment tags.
  • Paste (Ctrl-V/Command-V) the code between the comment tags of your preferred horizontal navigation Include file. Save the file.
  • Upload the files with other files. Or use Quick Upload It! to upload them after editing them.

This section discusses SBI! Includes for three possible locations for a top horizontal navigation menu.

Only use one of the above, of course. But it's good to have all three Include tags in your template. You never know when you might want to change your top horizontal navigation location!

In the Content Column

Directions for Use
  • Copy the third-party code you want to put into a Content Column Include file.
  • Paste the code between the comment tags of the relevant Include file, or type in your text or other code.
  • Save the file.
  • Upload the files with other files. Or use Quick Upload It! to upload them after editing them.

This section discusses the six Includes in your Content Column, including...

Directions for Use
  • Update the z-navigation.shtml Include file every time you build a new Tier 2 page. Save and upload the Include.
  • Place your newsletter opt-in form and What's New Box code in the Include above or below the NavBar to suit your preferences.
  • Upload the files with other files. Or use Quick Upload It! to upload them after editing them.

This section discusses the three Includes used in the Navigation Column of your template.

In the Extra Column

Directions for Use
  • Edit z-extra-default-nav.shtml to add navigation to certain parts of your site. If you don't want this navigation, remove the code between the comment tags. Save the file.
  • Add text or code in z-top-extra.shtml and/or z-bottom-extra.shtml to suit your needs. Save the file(s).
  • Upload the files with other files. Or use Quick Upload It! to upload them after editing them.

This section discusses the three SBI! Includes used in the Extra Column on the right side of your template (if you're using a 2-column template, it will not have these 3 Includes).

Directions for Use
  • Edit z-bottom-navigation.shtml to change any of the navigation links at the bottom of the page. Save the file.
  • Edit z-footer.shtml to change the copyright year or add other information to that part of the footer. Save the file.
  • Upload the files with other files. Or use Quick Upload It! to upload them after editing them.

This section discusses the four SBI! Includes used in the Footer section of your template.

  • ***z-above-bottom-nav.shtml***

  • ***z-bottom-navigation.shtml***

    This Include contains your bottom horizontal text navigation. To edit or add links, open z-bottom-navigation.shtml and make the changes, then save and upload the file with Quick Upload It!

  • ***z-below-bottom-nav.shtml***

  • ***z-footer.shtml***

    This Include contains your copyright notice. Update yearly. Add anything else you want to z-footer.shtml. Save and upload/re-upload the file.

  • The End of the File

    Directions for Use
    • Edit z-end-file.shtml to add or change tracking code. Save the file.
    • Upload the file with other files. Or use Quick Upload It! to upload it after editing it.

    The last SBI! Include in the template file is ***z-end-file.shtml***. Use this for tracking code that needs to go at the end of every page of your site.

    If you're not ready to use a tracking system (ex., Statcounter), leave this Include as is.

    When you're ready to add the tracking code, copy the code from the tracking system, paste it between the comment tags in z-end-file.shtml, then save and re-upload the file.

    Bingo! You'll have sitewide tracking in 60 minutes, a perfect example of the benefits of this system of pre-located SBI! Includes.