WordPress and Visual Composer custom page template -
i hope can me. i'am working visual composer , whould create template use on page's.
i whant create first section in pure code , save in theme's template file.
then when pick template in page editor, whould use visusal composer, content made composer should go below, have done in theme's templatefile.
so if template file in theme folder contains big image , buttons, whant output visual composer content below it.
is @ possible.?
when try pick template file default blank output containing header , footer no content visual composer. when use default template, works.
i whant create file can tell visual composer output content, hope makes sense.
kind regards dannie
yes possible.
below code-example of template file can add custom code wherever like.
name file example-page.php
id's , classes of course optional.
<?php // template name: name get_header(); ?> <!-- custom code goes here --> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <div class="container"> <!-- or here, if want inside container --> <div> <?php while ( have_posts() ) : the_post(); the_content(); // output content of visual composer endwhile; // end of loop. ?> </div> </div><!-- end container --> </main><!-- #main --> </div><!-- #primary -->
need more instructions? please let me know :)
Comments
Post a Comment