• Hi,

    I have done two pages for my portfolio site with elementor, they work fine with Polylang. Blog site i have coded from scratch, it works fine without Polylang, but after activating it blog site shows blank white page.

    Tried find a solve for this problem from here and Google for couple hours now and got nothing.

    Have same problem also with my front page when coded it myself from scratc. Now it is working when i done it with elementor.

    My code for blog page:

    <?php /* Template Name: Blog */?>
    
    <?php get_header();?>
    
    <div class="content">
    	<div class="container pt-5 pb-5">
    		<img src="http://www.jsdkqwoj.eu/wp-content/uploads/2019/12/line.png" class="viivakuva">
    		<h1 class="black"><?php single_cat_title();?></h1>
    
    		<div class="etusivun_teksti">
    		<?php if (have_posts()) : while(have_posts()) : the_post();?>
    
    			<div class="card mb-4">
    				<div class="card-body">
    					<div class="blog_container">
    						<?php if(has_post_thumbnail()):?>
    
    							<div class="card-img img-fluid"><?php the_post_thumbnail( 'blog_thumbnail' ); ?></div>
    
    						<?php endif;?>	
    					</div>
    					<div>				
    						<h3><?php the_title();?></h3>
    						<?php the_excerpt();?>
    						<div><a href="<?php the_permalink();?>" class="btn btn-success">Read more</a></div>
    					</div>
    				</div>
    			</div>
    
    		<?php endwhile; endif;?>
    		</div>
    	</div>
    </div>
     
    <?php get_footer();?>

    And single post code:

    <?php get_header();?>
    
    <div class="content">
    	<div class="container pt-5 pb-5">
    		<div class="viivakuva"><img src="http://www.jsdkqwoj.eu/wp-content/uploads/2019/12/line.png"></div>
    		<h1 class="black"><?php the_title();?></h1>
    
    		<?php if(has_post_thumbnail()):?>
    
    			<?php the_post_thumbnail('large'); ?>
    
    		<?php endif;?>
    
    		<div class="etusivun_teksti">
    		<?php if (have_posts()) : while(have_posts()) : the_post();?>
    
    			<?php the_content();?>
    
    		<?php endwhile; endif;?>
    		</div>
    	</div>
    </div>
     
    <?php get_footer();?>
    • This topic was modified 4 years, 3 months ago by spectaler.

    The page I need help with: [log in to see the link]

  • The topic ‘Blog shows white screen when activate Polylang’ is closed to new replies.