• Hello everyone,

    I m having trouble to add a sidebar on my homepage : https://e-smokersoz.com/

    As you can see i managed but it s not properly positioned, it s too much on the right.

    My template didn t include a sidebar on the homepage originally. I had to add one in the page-home.php :

    <?php
    /**
    * Template Name: Home Page
    */
    
    get_header(); ?>
    
    <div style="float: right;">
    <?php get_sidebar(blog) ?>
    </div>
    
    <div class="motopress-wrapper content-holder clearfix">
    
    		<div class="row">
    	<div class="container">
    
    			<div class="span12" data-motopress-wrapper-file="page-home.php" data-motopress-wrapper-type="content">
    				<div class="row">
    
    					<div class="span12" data-motopress-type="loop" data-motopress-loop-file="loop/loop-page.php">
    
    						<?php get_template_part("loop/loop-page"); ?>
    				</div>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>
    
    <?php get_footer(); ?>

    Iam not good at all at coding, and i ve spent 6 ours trying to put it few centimetre more on the left .. -_-“””

    If any of u have an idea of how to fix this, that d be amazing !!

    Cheers, have a good one =)
    [When posting code, use backticks or code button]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem positionning Sidebar’ is closed to new replies.