2012-01-08, 08:04:52
I know the pages are dynamic. I want to make Homepage different from pages. Like i want to make a kool backgound image for the front page and the rest of the pages will be different from home page.
Quote:template.php is the “Default Template†file used for most pages within your site, but you can make other files within your theme and set particular pages to use that new template file instead by choosing it within the Page Options → Template setting: http://get-simple.info/wiki/themes:creation
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: tempate.php
* @Package: GetSimple
* @Action: Innovation theme for the GetSimple 3.0
*
*****************************************************/
# Get this theme's settings based on what was entered within it's plugin.
# This function is in functions.php
Innovation_Settings();
# Include the header template
include('header.inc.php');
?>
<div class="wrapper clearfix">
<!-- page content -->
<article>
<section>
<!-- title and content -->
<h1><?php get_page_title(); ?></h1>
<div id/class="YOUR Custom content">
</div>
<?php get_page_content(); ?>
<div id/class="YOUR Custom content">
</div>
<!-- page footer -->
<div class="footer">
<p>Published on <time datetime="<?php get_page_date('Y-m-d'); ?>" pubdate><?php get_page_date('F jS, Y'); ?></time></p>
</div>
</section>
</article>
<!-- include the sidebar template -->
<?php include('sidebar.inc.php'); ?>
</div>
<!-- include the footer template -->
<?php include('footer.inc.php'); ?>
Connie Wrote:yurifanboy, the example of the template which you add below the page settings screenshot is somehow misleading/distracting, as <div id/class="YOUR Custom content"> looks strange ;=)
so in short, just do it this way:
1) create a standard template for all pages except start page
2) create a template for the startpage
3) assigned that start template to the startpage and use all other pages with the standard template
Cheers, Connie