Page.php file white screen
-
Hi,
yesterday I had encountered an issue with opening a page. Now it occurs with all pages.
When I click it the next message pops up:Parse error: syntax error, unexpected ‘if’ (T_IF) in /home/marcurd421/domains/kunstmatige-intelligentie.be/public_html/wp-content/themes/consultent-ex/page.php on line 26
There has been a critical error on this website.I have done clear the cache and added things in the page.php but it doesnt solve it.
I changed the code a bit, added endif; but it does not change.Perhaps anyone with php can help me figure out the problem in this code?
<?php /** * The template for displaying all pages * * This is the template that displays all pages by default. * * @link https://codex.www.ads-software.com/Template_Hierarchy */ get_header(); ?> <?php <div id="primary" class="content-area"> <main id="main" class="site-main post-wrap" role="main"> ?> <?php if ( have_posts() ) while ( have_posts() ) the_post(); get_template_part( 'content', 'page' ) <?php // If comments are open or we have at least one comment, load up the comment template. ?> if ( comments_open() || get_comments_number() ) : <?php comments_template(); ?> endif; endwhile; <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> endif; ?> <?php consultent_edit_link(); ?> <?php get_footer(); ?> </main> <!-- /main --> </div> <!-- /.post-wrap -->
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Page.php file white screen’ is closed to new replies.