Page Templates Selected NOT Loading
-
I tried to read some of the 25,000 search results but quit after about a hundred. Hope this post helps.
I “created” a site using WordPress and Bootstrap. The site has two Pages; one called Home (static) and the other, Blog. The Blog Page works flawlessly and the Home page displayed whatever I wrote on it.
Now, I “created” a Template (NoSlider-LSidebar-1Col.php) with the following code:
<?php /* * Template Name: NoSlider-LSidebar-1Col * Description: Page Template with no Slider, a Sidebar on the Right side, and a wide center column. * Author: Roberto (cangrejero) Nieves * Author eMail: [email protected] */ ?> <?php get_header(); ?> <!-- Row of columns --> <div class="container ten-top"> <div class="row"> <div class="col-xs-8 col-border"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </div> <!-- /col-xs-8 --> <div class="col-xs-1"> <!-- Empty Column --> </div> <!-- /col-xs-1 --> <div class="col-xs-3 col-border"> <?php get_sidebar( 'right' ); ?> </div> <!-- /col-xs-3 --> </div> <!-- /row --> </div> <!-- /container --> <?php get_footer(); ?>
I placed the Template in my Theme’s folder, it shows on the Page edit page, I can select it and update with no problem. However, when I view the site in the Browser, just the Header and Footer are displayed.
The above is confusing because, if I save “NoSlider-LSidebar-1Col.php” as “front-page.php”, everything works as intended.
Any guidance appreciated. Thanks!!!
- The topic ‘Page Templates Selected NOT Loading’ is closed to new replies.