• Hi,
    I created a contact-page.php and an about-us-page.php in my home directory to get ride of post tags in this 2 pages. but now i have a problem with my sidebar in these 2 pages. the sidebar goes to the ultimate left side of the page in my desktop computer without any free space in between( Firefox 19 , IE8 and 1600X1900) but they are OK in tablet and mobile view. but the sidebar position is placed in the right left corner of my main page and there is an appropriate space between the sidebar and the left side of screen. this is the contact-page code :

    <?php
    /*
    Template Name: contact page
    */
    ?>
    <?php get_header(); ?>
    
    <div id="content">
    	<div class="wrapper">
    		<div class="post-wrapper"><!--start post loop-->
    
    <?php echo  do_shortcode( '[contact-form-7 id="65" title="contact forum 1"]' ); ?>
    		</div><!--post-->
    				</div><!--end post loop-->
    
    		<?php get_sidebar(); ?>
    	</div><!--wrapper-->
    	<span class="clear"></span>
    </div><!--content-->
    
    <?php get_footer(); ?>

    and this is my main page code which is totally OK ( sidebar position is ok):

    <?php get_header(); ?>
    
    <div id="content">
    	<div class="wrapper">
    		<div class="post-wrapper"><!--start post loop-->
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    			<h2><a>"><?php the_title(); ?></a></h2>
    			<div class="wrap entry">
    
    				<?php the_content('????? ???...'); ?>
    			</div><!--wrap-->
    			<div class="meta">
    				<div class="bar-frame">
    					<div class="date">
    						<strong class="day"><?php the_time('d'); ?>
    						<div class="holder">
    							<span class="month"><?php the_time('M'); ?></span>
    							<span class="year"><?php the_time('Y'); ?></span>
    						</div>
    					</div><!--date-->
    					<div class="author">
    						<strong class="title">??????? <?php the_author_posts_link(); ?>
    					</div><!--author-->
    					<div class="categories">
    						<strong class="title">??????? <?php the_category(' '); ?>
    					</div><!--categories-->
    					<div class="comments">
    						<strong class="title">?????????
    						<a>#comments" title="Comments of : <?php the_title(); ?>"><?php comments_number('???? ??????','? ??????','% ??????'); ?></a>
    					</div><!--comments-->
    					<div class="tags">
    						<strong class="title">???????? <p> <?php the_tags('', '? ', ''); ?></p>
    					</div><!--tags-->
    				</div>
    			</div><!--meta-->
    		</div><!--post-->
    
    		<div class="post">
    			<?php comments_template( '', true ); ?>
    		</div><!--post-->
    		<?php endwhile;?>
    		<?php endif; ?>
    		</div><!--end post loop-->
    
    		<?php get_sidebar(); ?>
    	</div><!--wrapper-->
    	<span class="clear"></span>
    </div><!--content-->
    
    <?php get_footer(); ?>

    please tell me how can i fix that?
    you can see teh website in : faakhte.com

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘why sidebar position goes wrong in my coustom built pages?’ is closed to new replies.