Hi Andre.
No, I haven’t added a folder “page-templates” into my child theme yet. Instead of this fact, take a look at the following files:
single.php
<?php
/**
* The template for displaying all single posts.
*
* @package Emphasize
*/
get_header(); ?>
<div id="primary" class="content-area">
<div class="container">
<?php if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb();
} ?>
</div>
<main id="main" class="site-main" role="main">
<?php $singlestyle = get_theme_mod( 'single_layout', 'singleright' );
switch ($singlestyle) {
// Single Right Sidebar
case "singleright" :
echo '<div class="container"><div class="row"><div class="col-md-8">';
get_template_part( 'loop' );
echo '</div><div class="col-md-4">';
get_sidebar( 'right' );
echo '</div></div></div>';
break;
// Single Left Sidebar
case "singleleft" :
echo '<div class="container"><div class="row"><div class="col-md-8 col-md-push-4">';
get_template_part( 'loop' );
echo '</div><div class="col-md-4 col-md-pull-8">';
get_sidebar( 'left' );
echo '</div></div></div>';
break;
// Single - no sidebars
case "singlewide" :
echo '<div class="container"><div class="row"><div class="col-md-12">';
get_template_part( 'loop' );
echo '</div></div></div>';
break;
}
?>
</main>
</div>
<?php get_footer(); ?>
page.php
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Emphasize
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="container">
<?php if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb();
} ?>
<div class="row">
<div class="col-md-8">
<?php get_template_part( 'loop' ); ?>
</div>
<div class="col-md-4">
<?php get_sidebar( 'right' ); ?>
</div>
</div>
</div>
</main>
</div>
<?php get_footer(); ?>
They are located in the child theme folder and seems to work fine on a test site, but not on the public one.
So, what other changes do I need to perform?