Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1080957

    Hi,

    I have created a custom page (I replicated the page template and renamed it), but when I add content to the page, nothing shows up.

    Please see below for the code used:

    <?php
    /**
     * Template Name: book pod	
     *
     * @package WordPress
     * @subpackage Twenty_Seventeen
     * @since 1.0
     * @version 1.0
     */
    
    get_header(); ?>
    
    <div style="background-image: url(https://pod.sharpfutures.org.uk/wp-content/uploads/2019/01/POD-background-Book-POD01.jpg);
        background-size: cover;" class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    
    			<div class='container'>
    
    				<main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-page.php and that will be used instead.
                        */
    
                        $avia_config['size'] = avia_layout_class( 'main' , false) == 'fullsize' ? 'entry_without_sidebar' : 'entry_with_sidebar';
                        get_template_part( 'includes/loop', 'page' );
                        ?>
    
    				<!--end content-->
    				</main>
    
    				<?php
    
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    
    				?>
    
    			</div><!--end container-->
    
    		</div><!-- close default .container_wrap element -->
    
    <?php get_footer();

    Can you please let me know if the above should be working?

    Thanks,
    Ihtezaz

    #1082617

    Hey ihtezaz,

    Thank you for using Enfold.

    The template looks correct. Could you give us a link to the a page where this template is activated?

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.