• Hello,

    I can’t get my sidebar to show up on my custom theme, it works fine on localhost but not online.

    Here is the code for single.php:

    <?php get_header();?>
     
      <body>
       <div class="container">
    		<div class="row">
    		<div class="col-xs-12 col-sm-12">
    		<div class="well" style="overflow:auto;">
    			<h1 class="text-center text-uppercase  fw-800 ">
    			<?php echo get_the_title();?>
    			</h1>
    		</div>
    		</div>
    		</div>
    	 
        <div class="row">
    		 <div class="well" style="overflow:auto;">
    		
    		 <div class="col-md-8">
    			<div class="blog-post">
               <?php if(have_posts()){
    			 while(have_posts()){
    				 the_post();
    					 ?>
    					 <!-- Post -->
    				 <article class="col-sm-12">
    				 <header>
    				 <span class="tag"><?php the_category(','); ?></span>
    				 <span class="date"><?php the_time('d M Y G:i'); ?></span>
    				 </header>
    				 <p class="image featured text-center">
    				  <?php
    				 if(has_post_thumbnail()){
    					 the_post_thumbnail('medium');
    					 }
    					 ?>
    				  </p>
    				 <?php the_content();?>
    				 <?php wp_link_pages();?>
    				 <?php the_tags();?>
    											
    				 <?php comments_template();?>
    				 </article>
    				 <!-- Post -->
    				<?php
    				}
    				}
    				?></div><!-- /.blog-post -->
    		</div>
    		<div class="col-md-4 col-sm-12 xs-hiden">
    		<?php get_sidebar();?>
    		</div>
    	</div>
    	</div>
    	</div>
    	
    <!--/.container-->
    <?php get_footer();?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Without a site link we can only guess…that said, it is likely due to the wrapper for the sidebar inline CSS classes:

    
    <div class="col-md-4 col-sm-12 xs-hiden">
    		<?php get_sidebar();?>
    		</div>
    

    (that is probably supposed to be xs-hidden also)

    or the overflow here:

    
    <div class="well" style="overflow:auto;">
    

    Or both.

    Please provide a site link for help with CSS. Also make sure to clear your local browser cache and any server cache in use.

    Thread Starter labyrinthman

    (@labyrinthman)

    Hi @swansonphotos, and thanks for the reply.
    Here is the link to my website and a link to a single page
    https://www.kler-srbobran.rs/subvencija-klonska-selekciju/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar not showing on single.php’ is closed to new replies.