Skip Navigation

[Résolu] Still not know how to integrate Layouts with Genesis (Childtheme)

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Marqué : 

This topic contains 2 réponses, has 2 voix.

Last updated by Iris Maier Il y a 6 années et 7 mois.

Assigned support staff: Shane.

Auteur
Publications
#290954

I am trying to: Integrate Layouts with Genesis

I visited this URL: https://toolset.com/forums/topic/id-like-to-understand-how-i-can-use-genesis-together-with-boostrap-and-layouts/

I created a new file in my Genesis Child theme directory, as suggested in the thread in the link above, but I do not know how this is being called, I suppose creating and placing this file in the child theme's folder alone is not enough... I also tried integrating the code into the functions.php in the child theme, but that did not work either.

#291169

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Iris,

As the instructions suggest in order to integrate layouts with your theme you need to create a new page template.

Create a new template called layouts-page.php and add this to it.

<?php
/**
* layouts-page.php (the Template for displaying all single posts)
*
*/
get_header(); ?>
  
<div id="primary" class="content-area">
  <div id="content" class="site-content" role="main">
    <?php
      the_ddlayout( 'default-layout' );
    ?>
  </div><!-- #content -->
</div><!-- #primary -->
  
<?php get_footer();

Whenever you go to create a page in wordpress ensure that you select this template as your page template.

This is essentially all you need to do for layouts to start working with your theme.

#291171

Ah, the penny has dropped, finally 🙂 Thanks!