Skip Navigation

[Gelöst] I feel dumb, but I can't seem to integrate Layouts with my Genesis child theme..

This support ticket is created vor 8 Jahre, 8 Monate. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 Antworten, has 3 Stimmen.

Last updated by Iris Maier vor 8 Jahre, 8 Monate.

Assisted by: Shane.

Author
Artikel
#292016
Template and Layout.png
Layouts theme integration.png

I am trying to: integrate Layouts with a Genesis child theme

I visited this URL: https://toolset.com/forums/topic/still-not-know-how-to-integrate-layouts-with-genesis-childtheme/

I expected to see: a choice for layouts-page as a template when creating a new page (see pic), but it doesn't show...

Neither do I have any clue what to do with the code provided in this thread: https://toolset.com/forums/topic/id-like-to-understand-how-i-can-use-genesis-together-with-boostrap-and-layouts/

Instead, I got: no theme integration, see second picture....

#292072

Shane
Supporter

Languages: Englisch (English )

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

Hi Iris,

In order to use the layouts on a page you will first need to create a Layout. See Screenshot.

You will need to do this before you can assign it to a page.

For a more comprehensive guide please see here https://toolset.com/documentation/user-guides/#layouts

If you need further assistance please let me know 🙂

#292099
Layouts.png
Layouts for Pages.png
Layout test Template.png

Yes, I know that and on another site where I am testing different themes and Layouts plugin, I do have different Layouts created. See screenshots
When I use the Bootstrap 3 theme I can assign them to certain pages, but when using another theme, like Genesis Sandbox or Bootstrap Genesis theme which are both Genesis childthemes, that include Bootstrap, I only can assign a Layout to all pages, not to one specific. And when I create a new page, I can choose a template (see screenshot), but when I publish or update after choosing a Layout template, it is removed and it doesn't show on the frontend.

You can find both Genesis and the two childthemes here: hidden link

hidden link
hidden link

Here is what I did, and I think I miss certain steps, but I have no clue which ones....:

I uploaded a version of Layouts Luo Yang sent me by email.
I created a file named my-template.php with the code Luo gave me (https://toolset.com/forums/topic/id-like-to-understand-how-i-can-use-genesis-together-with-boostrap-and-layouts/) and uploaded this into both the genesis childtheme directories.

I created a file named layouts-page.php as you, Shane provided here: https://toolset.com/forums/topic/still-not-know-how-to-integrate-layouts-with-genesis-childtheme/ and uploaded that one as well to the theme directory of both of the childthemes.

I also tried to combine both the codes in one file, but that made no difference.
I also tried to use the code Luo provided into the functions.php file (without the <?php), but it broke.

What am I missing here?

#292443

Shane
Supporter

Languages: Englisch (English )

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

Hi Iris,

Could you provide me with a copy of the theme to run some tests on it to see if there is a compatibility issue with the theme.

I will be activating the private fields for you to attach the theme files.

Thanks

#292544

Dear Iris,

I am in for Shane, I took another look to your issue using Genesis + Bootstrap Genesis (hidden link) and everything seems to work just fine.

What you need to do is to activate the child theme and create in its root a template file supporting layout with this simple content:

<?php
/**
 * Template Name: Layouts page template
 *
 */


get_header( 'layouts' ); ?>

<?php if ( function_exists( 'the_ddlayout' ) ) : ?>

    <?php the_ddlayout( 'page-layout', array() ); // Loads 'page-layout' layout by default ?>

<?php else: ?>

    <h1>
        <?php _e('This template requires the Drag and Drop Layout plugin.', 'genesis'); ?>
    </h1>

<?php endif; ?>

<?php get_footer( 'layouts' );
?>

Then you can start creating layouts and you will see them in post edit page template selector.

In the next step you'll need to refine the markup of this template to make it compliant with yours (but this is up to you).

Please follow these simple steps and let me know if you need other help, best regards
Riccardo

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.