The easiest way to get started is by downloading a bare bones theme like the skeleton theme. Unzip the package to your computer and you'll find the essential files and structure of a Typesetter theme.
After you unzip the skeleton theme, you'll find four files and one subfolder:
This is the basic structure of a Typesetter theme where template.php contains the html and style.css contains the css.
The template.php file contains the html and php calls to organize your theme. There are a number of output functions available, but you'll need to include at least three: $page->GetContent(), gpOutput::GetHead(), gpOutput::GetAdminLink().
Here's an example of a very minimal template.php file.
<!DOCTYPE html> <html lang="en"> <head> <?php gpOutput::GetHead(); ?> </head> <body> <?php $page->GetContent(); ?> <?php gpOutput::GetAdminLink(); ?> </body> </html>
A theme should have at least one css file named style.css. You'll notice in the template.php file, the style.css file is not referenced. This is handled automatically by Typesetter in the gpOutput::GetHead(); portion of the template.
For compatibility with Typesetter's admin interface, there are certain style considerations you should make.
The top margin of the html and body should be zero.
html,body{ margin-top:0; }
The Addon.ini file is not required for your theme to work unless you want to upload it to typesettercms.com.
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More News
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using