I'm having an issue with Pro Site working with my theme. It

Hi Guys, I'm having an issue with Pro Site working with my theme. It does work with the default theme, however with my theme (Separately purchased) the Pro Site page is blank.

I have looked around here for some guidance and have seen the beginnings of what looks like the solution for me.

I believe there is something missing from my pages.php to make Pro Sites display. I have included the code below. Any help would be very much appreciated, and any further information you may need, please don't hesitate to ask.

Many thanks in advance.

<?php
/**
 * @package WordPress
 * @subpackage ThemeWoot
 * @author ThemeWoot Team
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
$layout=themewoot_helper( 'meta', 'layout' );
?>
<?php get_header(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="site-content container pt pb clearfix">

	<?php if($layout=='left') { get_sidebar(); } ?>

	<article id="primary-wrapper" <?php themewoot_layout_class($layout); ?>>
		<div class="content-area inner">
		<?php if (have_posts()) : the_post(); ?>
			<?php if(get_the_content()) : ?>
			<div class="post-content entry-text">
				<?php the_content(); ?>
			</div>
			<?php wp_link_pages( array( 'before' => '<div class="page-link">' . esc_attr__( 'Pages:', 'Twoot' ), 'after' => '</div>' ) ); ?>
			<?php endif; ?>
		<?php endif; ?>
		</div>
	</article>
	<!--end #primary-->

	<?php if($layout=='right') { get_sidebar(); } ?>

</div>
</div>
<!--end #content-->
<?php get_footer(); ?>
  • Vinod Dalvi

    Hi @Nicholas,

    Thanks for posting on the forum.

    I can see you are using cache, could you please try temporary deactivating it.

    Could you please send me the theme you are using on the email id contact@wpmudev.org so that i can troubleshoot it on my site?

    - Include my name in the subject "Vinod Dalvi"
    - Include the URL of this post in your message so that I may track this issue better

    Kind Regards,
    Vinod Dalvi

  • Vinod Dalvi

    Hi @Nicholas,

    Thank you for sending me the Compass theme that you are using.

    I have tested it on my test site and could reproduce the issue that Pro Site page doesn't display any content.

    To resolve this issue try removing/commenting the following code condition from page.php file by overwriting it in your child theme.

    <?php //if(get_the_content()) : ?>
    ...
    ...
    <?php //endif; ?>

    Your page.php file should contain the following code.

    <?php
    /**
     * @package WordPress
     * @subpackage ThemeWoot
     * @author ThemeWoot Team
     *
     * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
     * that is bundled with this package in the file LICENSE.txt.
     * It is also available through the world-wide-web at this URL:
     * http://www.gnu.org/licenses/gpl-3.0.txt
     */
    $layout=themewoot_helper( 'meta', 'layout' );
    ?>
    <?php get_header(); ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <div class="site-content container pt pb clearfix">
    
    	<?php if($layout=='left') { get_sidebar(); } ?>
    
    	<article id="primary-wrapper" <?php themewoot_layout_class($layout); ?>>
    		<div class="content-area inner">
    		<?php if (have_posts()) : the_post(); ?>
    			<?php //if(get_the_content()) : ?>
    			<div class="post-content entry-text">
    				<?php the_content(); ?>
    			</div>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link">' . esc_attr__( 'Pages:', 'Twoot' ), 'after' => '</div>' ) ); ?>
    			<?php //endif; ?>
    		<?php endif; ?>
    		</div>
    	</article>
    	<!--end #primary-->
    
    	<?php if($layout=='right') { get_sidebar(); } ?>
    
    </div>
    </div>
    <!--end #content-->
    <?php get_footer(); ?>

    Best Regards,
    Vinod Dalvi