Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a standable home page?
#1
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.
Reply
#2
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

1. Make a copy of your template.php file and call it something else like custom-layout.php
2. Either leave the <?php get_page_content(); ?> and <h1><?php get_page_title(); ?></h1> perhaps to still have editable content below your bg image or remove them if you only want the image
3. Enter your own html and css
4. When you go to create the page select your template from the list under page options > Page Template
[Image: captureagfp.png]
Code:
<?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'); ?>
This is the same way wordpress handles custom page layouts that require something that a WYSIWYG editor cannot provide.
Todo arde si le aplicas la chispa adecuada.
Reply
#3
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
now that the easiest way. thanks!
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
Reply




Users browsing this thread: 1 Guest(s)