• Hi, Help. I’m not a coder.

    I am trying to create a template so I can create a page within my child theme (Standard Pro) so I can make the layout/elements different from the rest of the site.

    I have copied the page.php from the original theme.

    And created a new page.php, removing the header section of code and replacing it with a new line of code.

    Having uploaded the page.php file the page on view shows all the content but the page layout as used for the rest of the site is not there.

    Any help much appreciated as I’ve wandered out of my depth now.

    This is the page.php file I am using:

    <?php /* Template Name: CustomPageT1 */ ?>
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" >
    
    			<?php
    			while ( have_posts() ) : the_post();
    
    				get_template_part( 'template-parts/content', 'page' );
    
    				// If comments are open or we have at least one comment, load up the comment template.
    				if ( comments_open() || get_comments_number() ) :
    					comments_template();
    				endif;
    
    			endwhile; // End of the loop.
    			?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    • This topic was modified 5 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

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

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Since Standard Pro is a commercial theme, we ask that you please go to their official support channel, so you can get support from the people who know it best.

    https://www.happythemes.com/demo/standard-pro/

    Forum volunteers are not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way

    As the author is aware, commercial products are not supported in these forums.

Viewing 1 replies (of 1 total)

The topic ‘Creating a page template within a theme’ is closed to new replies.