First step with Page template in Child-theme
-
Hi all,
I have created a Page template that works with the theme Twenty tweelve but not with Customizr…
The page template allows my WP editors to create a page with a floating back (“retour” in french) button on the right.
With Customizr I only see my buttons (no content…).
Any code to show how to display the current content of my page?
My code :
<?php /* Template Name: Avec_bouton_retour */ get_header(); ?> <style type="text/css"> #access {display: none;} #branding {display: none;} body.custom-background { background-color:#F7B054; } </style> <div style="float:right;margin-right:20px;"> <a name="haut"></a> <input onclick="history.back(-1)" type="button" value="Retour" style="text-align:right;color:#4D4D4D;" /> </div> <div style="clear: both;"></div> <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <div style="float:right;margin-right:20px;margin-bottom:20px;"> <input onclick="history.back(-1)" type="button" value="Retour" style="text-align:right;color:#4D4D4D;" /> </div> <div style="clear: both;"></div> <?php get_footer(); ?>
==============
Many thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘First step with Page template in Child-theme’ is closed to new replies.