Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing Slider on certain pages
#1
Hi, im new to GetSimple, and i have it installed with the GSBigBusiness Theme. I want to have the slider on the home page but not the subsequent pages. I have got a separate template file but when i remove the section referring to the slider code the page doesn't display correctly. Has anybody experienced this problem before? or can somebody with more experience help me? Big Grin Thanks
Reply
#2
(2013-02-05, 23:16:45)tileyuk Wrote: Hi, im new to GetSimple, and i have it installed with the GSBigBusiness Theme. I want to have the slider on the home page but not the subsequent pages. I have got a separate template file but when i remove the section referring to the slider code the page doesn't display correctly. Has anybody experienced this problem before? or can somebody with more experience help me? Big Grin Thanks

Its probably best to ask in the specific template support forum if there is one but what I do for different pages is just create a separate template without the specific code then just assign the new template to that particular content in the pages section. However depending on how that template is styled you may have to adjust for margin and padding differences but get simple allows for giving the body and id which would let you set those variables at a per page level.

Example create a template.php but just call it frontpage.php and make your adjustments, then let the default template.php handle the rest of your pages without whatever slider script is being used. I dont know how that template is structured and ive never even used a pre made template on GS for anything beyond a reference point so not sure if that helps.
Reply
#3
I had a quick look.

There is something odd with the way the divs are closed means the white #wrapper div is broken by removing the slider. Was that your problem? Did you fix it?

Here is a page template with the slider removed (which works).
PHP Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }

/****************************************************
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 3.0 License
Name       : Big Business 2.0
Description: A two-column, fixed-width design with a bright color scheme.
Version    : 1.0
Released   : 20120326
GSbigbusiness theme for GetSimple CMS Released   : 20121221
***************************************************/

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

<title><?php get_page_clean_title(); ?> | <?php get_site_name(); ?><?php get_component('tagline'); ?></title>
  <?php get_header(); ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/style.css" />
<script type="text/javascript" src="<?php get_theme_url(); ?>/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php get_theme_url(); ?>/jquery.dropotron-1.0.js"></script>
<script type="text/javascript">
    $(function() {
        $('#menu > ul').dropotron({
            mode: 'fade',
            globalOffsetY: 11,
            offsetY: -15
        });
    });
</script>
</head>
<body>
<div id="wrapper">
    <div id="header">
        <div id="logo">
            <h1><a href="<?php get_site_url(); ?>"><?php get_site_name(); ?></a></h1>
        </div>
        <div id="slogan">
            <h2><?php get_component('tagline'); ?></h2>
        </div>
    </div>
    <div id="menu">
        <ul>
                    <?php if(function_exists(get_i18n_navigation)){ get_i18n_navigation($slug$minlevel=0,
                    
$maxlevel=10$show=I18N_SHOW_MENU$component=null); 
       } else { 
get_navigation(get_page_slug(FALSE)); } ?>
        </ul>
        <br class="clearfix" />
    </div>
<!-- Div which held the slider has margins assigned to it in the css,or you may want to put an image in it, idk
    <div id="slider">
    </div>
End Vestigal Slider Div -->        
        
    <div id="page">
        <div id="content">
            <div class="box">
                <h2><?php get_page_title(); ?></h2>
                <p><div id="page-content">
                <div class="page-text">
                    <?php get_page_content(); ?>
                </div>
            </div></p>
            </div>
            
            <br class="clearfix" />
        </div>
                <div id="sidebar">
                    <div class="box">
                        <p><?php get_component('sidebar'); ?></p>
                </div>
                <br class="clearfix" />
            </div>
        </div>
        <div id="footer">
          <p><?php echo date('Y'); ?> &copy; <?php get_site_name(); ?> | Design by <a href="http://nodethirtythree.com"
          target="_blank">nodethirtythree</a> and <a href="http://www.freecsstemplates.org/" target="_blank">FCT</a> | 
          <a href="http://get-simple.info" target="_blank">Adapted for Getsimple</a> by <a href="http://studiobox.fr/"
          target="_blank">JLM</a></p>
    </div>
    </div>
</body>
</html> 
Reply
#4
Ahhh excellent thanks very much! problem solved Smile
Reply




Users browsing this thread: 1 Guest(s)