Skip Navigation

[Resolved] I'd like to understand how I can use Genesis together with Boostrap and Layouts.

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.

This topic contains 12 replies, has 3 voices.

Last updated by Iris Maier 6 years, 8 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#279817

I am trying to: understand if the Genesis Bootstrap theme (hidden link) or Genesis Sandbox (hidden link) have enough from Bootstrap to be used with Layouts with just the documentation found on this url: https://toolset.com/documentation/user-guides/layouts-getting-started-guide/. Or will I need to follow the steps from this user guide, which is quite hard for me to understand..: https://toolset.com/documentation/user-guides/layouts-theme-integration/
It is just that I can not make up my mind about which framwork and childtheme to choose to start building with. I really like the Genesis framework though, so I am looking for a way to integrate the two of them...

I visited this URL: https://toolset.com/documentation/user-guides/layouts-getting-started-guide/
https://toolset.com/documentation/user-guides/layouts-theme-integration/
hidden link
hidden link

I expected to see:

Instead, I got:

#280110

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

I suggest you try follow our document
https://toolset.com/documentation/user-guides/layouts-theme-integration/
To integrate Layouts with your custom theme file, if you need more assistance for it, please post a downloadable URL for the Genesis Bootstrap theme and Genesis framwork, I need test and debug it in my localhost, thanks

#280122

Thanks Luoy, I will give that a try and will come back if it doesn't work out! Do I need to start a new thread if it doesn't work that way?

#280470

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

You can create new thread or follow this thread if there is any problem, it is up to you.

#289404

Hi!
I have been looking at the link you provided and also searched in the forum, but can't find how to replace the have_posts() loop with a call to the_ddlayouts(), because Genesis child themes do not have files like single.php or index.php. The framework does, but that doesn't contain any loops and I am not supposed to change anything there.

Here you can download the files: hidden link

#289522

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Thanks for the feedback, I can duplicate the problem in my localhost, and put it into our to-do list, our developers will take care of it.

#289563

Great, thanks! Looking forward to that, how will I know when it is done?

#290353

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

It is fixed in the Layouts version 1.1, I am sending you an email with development version of Layouts version 1.1, please test and feedback if the problem is fixed.

#290383

I am sorry, but I still do not understand how to integrate Layouts with the Genesis themes, like is being told here: https://toolset.com/documentation/user-guides/layouts-theme-integration/ ...
There are no 'have_posts() loops' in the Genesis child themes, as far as I can see....

In <a href="https://toolset.com/forums/topic/hello-can-you-explain-how-to-integrate-layouts-with-genesis-framework">this thread</a> you supply a link with instructions, but the link is dead...

(You can download the Genesis framework including the child themes I'd like to test on the link I gave you before)

#290700

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

I see other users is using custom function to integrate Layouts with genesis theme, for example you can create a theme file my-template.php in your child theme folder, with below codes:

<?php
/*
 * Template Name: Layouts Template
 */
//* Enqueue script
add_action( 'wp_enqueue_scripts', 'chrondev_enqueue_scripts' );
function chrondev_enqueue_scripts() {
        
	wp_enqueue_style( 'bootstrap', get_stylesheet_directory_uri() . 'https://cdn.toolset.com/css/bootstrap.min.css' );

}
//* Force full-width-content layout setting
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

/** Code for custom loop */
function my_custom_loop() {
  
    echo '<div id="primary" class="content-area"><div id="content" class="site-content" role="main">';
      do_action( 'genesis_entry_header' );
      the_ddlayout( 'default-layout' );
    echo '</div></div>';
}
 
/** Replace the standard loop with our custom loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'my_custom_loop' );

genesis();

Then goto WP admin side, edit/create a page, and test.

#290783

Ah yes, that is of course a great idea! I will give that a try this weekend, thanks!

#292489

Dear Iris,

I am in on behalf of Luo, it would be very useful for us to know how the fix we've done worked for you.

Did it solve the issue you originally had with child theme template paths? Didi this work for you?

Can you please let us know?

Thanks in advance, best regards
Riccardo

#292528

Hi Riccardo,

I am sorry I didn't let you know, I thought this thread was closed, so I started another one and again another, because no, it isn't resolved yet unfortunately....

Here are the links to the threads:
https://toolset.com/forums/topic/still-not-know-how-to-integrate-layouts-with-genesis-childtheme/
https://toolset.com/forums/topic/i-feel-dumb-but-i-cant-seem-to-integrate-layouts-with-my-genesis-child-theme/

Yesterday I got an email from Shane who asked me to send a copy of the theme to test. This is what Luo asked for as well in this thread, but the solution (another version of Layouts) did not solve the problem... I tried several things with three different Genesis childthemes (see the second link), but none of them worked:-(