This is an old revision of the document!
If you are building a site from scratch, converting an existing site to GetSimple or you have a web page you want to use as a template you need to create a GetSimple Theme which will define the html and css of your web pages. There is a Step-by-Step Tutorial for converting a static html page into a simple theme. Just as a single html file can define a web page there is only one truly required theme file, and that's template.php
. template.php
defines the html of the default page layout for most pages within your site, but you can make other page templates and set particular pages to use an alternative template by choosing it within the Page Options → Template setting:
Dynamic content is inserted into your page template by using template tags similar to WordPress (if you are familiar with that). You then place that file within it's own uniquely named folder and install it on your server. All template pages are written in PHP.
the default page template template.php
goes inside a folder named specifically for your theme, and placed within the theme folder of your GetSimple installation such as: /path/to/getsimple/theme/my_theme/template.php
You can rename a theme by renaming the folder that contains it.
Other files found in a template folder are:
homepage.php
or contact.php
. They will be available for selection in Page Options.editor.css
in the theme folder will enable the CKeditor to display page content more accurately.functions.php
contains any custom functions that are used within your theme.header.inc.php
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); } ?>
. This will stop any unwanted direct access to that particular file.<body id=“<?php get_page_slug(); ?>” >
It makes it easy to restyle a single page.<?php get_header(); ?>
between the <head>
tags and <?php get_footer(); ?>
somewhere before the end </body>
tag.Back to the GetSimple Wiki Contents Page