Blog shows white screen when activate Polylang

Question

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.

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

Also tried activate debug mode and have it done with this code:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

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 this is my 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();?>
0
, , Osmankaapa 2 years 2020-01-08T08:40:16-05:00 0 Answers 72 views 0

Leave an answer

Browse
Browse