Haaalp!! It Doesn't Work!
If the code does not work:
Check that you have pasted in everything you needed. It is easy to accidentally lose characters from the beginning or end of the code
If it is in the body of your page, try repositioning it with the Front/Back button set. See Positioning on Page above.
Sometimes malfunctioning code can do really weird things to other objects on your page. In cases like this, add a test page and isolate the code there while you test it.
Include Code in Your SiteSpinner Pages
Special code is sometimes useful for things like counters, shopping carts, menus and the like. Usually the provider of the code will give you some instructions:
'Copy and paste this code to the header of your page'; and/or
'Copy and paste this code to the body of your page'
Fortunately both these steps are very easy with SiteSpinner.
Body Code
To paste code into the body of your page:
Create a Code Object (left hand toolbar)
Paste the provided code into the text editor window
Save and Close the text editor
Resize the code object. It is not essential to do this -- however if the code will display an image, I find it useful to make the code object about the same size as the image
At this point, the code object will still display as text
Preview your project. The code should now execute and do whatever you intended.
Bruceee's Sandpit
Web Design with SiteSpinner
home
home
home
Header Code
To paste code into the header of your page:
Open the Page Editor (left-hand toolbar) > Header tab
Click the 'New Header' button
Paste the code into the 'Custom Header' box
If you have already pasted the same code into another page, instead select the header from the drop-down list box
Consider giving the header a meaningful new name
Click the OK button
The code should do its stuff when you preview or publish
Positioning on Page
Most times, just dragging-and-dropping the Code Object on your page gives some coarse control over its position. You can also use the Front/Back button set on the bottom toolbar: