• Hey guys,

    I know i’m supposed to put this in the theme catagory, but since I’m not getting replies there, and it isnt as much specific to my theme, i’d figured id give it a second chance here.

    So my problem is; i want a default page (I named Home) as my homepage. When I set the Static Page to “Home”, it automatically changes the full layout of my home page. The theme I am running automatically changes any homepage to a full “featured” page. Which I dont want to use!

    I’ve come so far, that i’ve managed to delete the 4 featured boxes. I still have an extra (standard) picture on my homescreen now, tekst doesnt show, and the sidebar doesnt show either. (Oh, and if i delete the standard picture, my text will disappear into the navbar.
    Theme is foodeez, but ill upload some files i think might include this weird layout change.

    Can anyone help me getting rid of this weird home page? I just want a standard page set as my home, with the theme’s normal layout!

    Yours, and thanks in advance,

    Jay
    ————————————
    Front-header-image-section.php (includes/front-header-image-section.php

    <div class="Skt-header-image">
    	<!-- header image -->
    		<div class="foodeez-image-post"><img alt="foodeez-default-slider-image" class="ad-slider-image" width="1585"  src="<?php if(foodeez_lite_get_option($foodeez_lite_shortname.'_frontslider_stype')) { echo foodeez_lite_get_option($foodeez_lite_shortname.'_frontslider_stype'); } else { echo get_template_directory_uri().'/images/Foodies-slider-image.jpg';}?>" ></div>
    	<!-- end  header image  -->
    </div>

    Index.php

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme and one of the
     * two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * For example, it puts together the home page when no home.php file exists.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     */
    get_header(); ?>
    
    <?php global $foodeez_lite_shortname; ?>
    <div class="main-wrapper-item">
    	<div class="bread-title-holder">
    		<div class="bread-title-bg-image full-bg-breadimage-fixed"></div>
    		 <div class="container">
    			 <div class="row-fluid">
    				  <div class="container_inner clearfix">
    					 <h1 class="title"><?php if(foodeez_lite_get_option($foodeez_lite_shortname.'_blogpage_heading')) { echo foodeez_lite_get_option($foodeez_lite_shortname.'_blogpage_heading'); } ?></h1>
    				   </div>
    			 </div>
    		</div>
    	</div>
    
    	</section><!-- inner-header-bg -->
    
    	<div class="page-content">
    		<div class="container post-wrap">
    			 <div class="row-fluid">
    				  <div id="container" class="span8">
    					<div id="content">
    						<?php if(have_posts()) : ?>
    						<?php /* The loop */ ?>
    						<?php while(have_posts()) : the_post(); ?>
    						<?php if(is_sticky($post->ID)) { _e("<div class='sticky-post'>featured</div>",'foodeez-lite'); } ?>
    						<?php get_template_part( 'content', get_post_format() ); ?>
    						<?php endwhile; ?>
    						<?php
    							$prev_link = get_previous_posts_link('&larr;Previous');
    							$next_link = get_next_posts_link('Next&rarr;');
    							if($prev_link || $next_link){
    							?>
    							<div class="navigation blog-navigation">
    								<div class="alignleft"><?php previous_posts_link(__('&larr;Previous','foodeez-lite')) ?></div>
    								<div class="alignright"><?php next_posts_link(__('Next&rarr;','foodeez-lite'),'') ?></div>
    							</div>
    							<?php
    							}
    						?>
    						<?php else :  ?>
    						<?php get_template_part( 'content', 'none' ); ?>
    						<?php endif; ?>
    					</div>
    					<!-- content -->
    				  </div>
    				  <!-- container --> 
    
    				  <!-- Sidebar -->
    				  <div id="sidebar" class="span4">
    					<?php get_sidebar(); ?>
    				  </div>
    				  <!-- Sidebar -->
    			 </div><!-- row-fluid -->
    		 </div><!-- container -->
    		</div>
    	</div>
    <?php get_footer(); ?>

    Template-front-page.php

    <?php get_header(); ?>
    
    <?php global $foodeez_lite_shortname; ?>
    
    <!-- PAGE EDITER CONTENT -->
    <?php if(have_posts()) : ?>
    	<?php while(have_posts()) : the_post(); ?>
    		<div id="front-content-box" class="skt-section">
    			<div class="container">
    				 <div class="row-fluid">
    						<?php the_content(); ?>
    				</div>
    			</div>
    		</div>
    	<?php endwhile; ?>
    <?php endif; ?>
    
    <?php get_footer(); ?>

    Home.php

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme and one of the
     * two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * For example, it puts together the home page when no home.php file exists.
     *
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
     *
     */
    get_header(); ?>
    
    <?php global $foodeez_lite_shortname; ?>
    <div class="main-wrapper-item">
    	<div class="bread-title-holder">
    		<div class="bread-title-bg-image full-bg-breadimage-fixed"></div>
    		 <div class="container">
    			 <div class="row-fluid">
    				  <div class="container_inner clearfix">
    					 <h1 class="title"><?php if(foodeez_lite_get_option($foodeez_lite_shortname.'_blogpage_heading')) { echo foodeez_lite_get_option($foodeez_lite_shortname.'_blogpage_heading'); } else { echo 'Blog'; } ?></h1>
    				   </div>
    			 </div>
    		</div>
    	</div>
    
    	</section><!-- inner-header-bg -->
    
    	<div class="page-content">
    		<div class="container post-wrap">
    			 <div class="row-fluid">
    				  <div id="container" class="span8">
    					<div id="content">
    						<?php if(have_posts()) : ?>
    						<?php /* The loop */ ?>
    						<?php while(have_posts()) : the_post(); ?>
    						<?php if(is_sticky($post->ID)) { _e("<div class='sticky-post'>featured</div>",'foodeez-lite'); } ?>
    						<?php get_template_part( 'content', get_post_format() ); ?>
    						<?php endwhile; ?>
    						<?php
    							$prev_link = get_previous_posts_link('&larr;Previous');
    							$next_link = get_next_posts_link('Next&rarr;');
    							if($prev_link || $next_link){
    							?>
    							<div class="navigation blog-navigation">
    								<div class="alignleft"><?php previous_posts_link(__('&larr;Previous','foodeez-lite')) ?></div>
    								<div class="alignright"><?php next_posts_link(__('Next&rarr;','foodeez-lite'),'') ?></div>
    							</div>
    							<?php
    							}
    						?>
    						<?php else :  ?>
    						<?php get_template_part( 'content', 'none' ); ?>
    						<?php endif; ?>
    					</div>
    					<!-- content -->
    				  </div>
    				  <!-- container --> 
    
    				  <!-- Sidebar -->
    				  <div id="sidebar" class="span4">
    					<?php get_sidebar(); ?>
    				  </div>
    				  <!-- Sidebar -->
    			 </div><!-- row-fluid -->
    		 </div><!-- container -->
    		</div>
    	</div>
    <?php get_footer(); ?>

    Front-page.php

    <?php global $foodeez_lite_shortname; ?>
    <?php
    if ( 'page' == get_option( 'show_on_front' ) ) {
    	global $shortname;
    ?>
    <?php get_header(); ?>
    
    <?php include("template-front-page.php"); ?>
    
    <?php get_footer(); ?>
    <?php
     } else {
    	include( get_home_template() );
    }
     ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change home page (theme changes it!?)’ is closed to new replies.