Hello, when activated plugin “Genesis connect with woo theme Sensei” in the last version of Sensei LMS, the link Next leasson is Error.
Or the link go to Archive Lesson.
No appear link, only text.
When desactivated “Genesis connect with woo theme Sensei” the link function ok.
Thanks you!
]]>Hello, i have a problem with vinculation with child theme Business Pro and Genesis Connect with Woothemes Sensei.
The problem is that in Gutenberg have format to text, but in the post this format don’t appear.
For example:
I make a list:
and in gutenberg is ok.
but in the post:
milk
flowers
—
This happens when i activate the plugin.
Thanks you!
sorry for my english, i am from Argentina
Hi Christoph,
Is this plugin still supported? If so, perhaps you will want to look into this…
After changing a Sensei website to full-width-content I started noticing that your plugin doesn’t seem to respect the genesis layout setting. In the code I saw you call get_sidebar instead of genesis_get_sidebar and that is part of the problem. genesis_get_sidebar skips adding a sidebar when layout is set to ‘full-width-content’.
Also I noticed that a lot of pages even when I made this change, don’t even use genesis to build the page. They have their own template that overrules the genesis template and there genesis() isn’t called.
To really connect genesis to sensei you should include genesis versions of the following templates in plugins/woothemes-sensei/plugins/sensei-lms/templates/ (or plugins/sensei-lms/templates/ in the free version) and use them:
archive-course.php
archive-lesson.php
archive-message.php
course-results.php
learner-profile.php
single-course.php
single-lesson.php
single-message.php
single-quiz.php
taxonomy-module.php
teacher-archive.php
Also the hook “genesis_pre_get_option_site_layout” isn’t called for post_type_archive pages, like the course archive page. There it prefers to get the layout via genesis_get_cpt_option( ‘layout’ ) and there get_option is called with key “layout” and setting “genesis-cpt-archive-settings-” followed by the post_type id (so “genesis-cpt-archive-settings-course” for the course archive page).
Using the “genesis_pre_get_option_site_layout” hook in the plugin means of course that the user settings for layout are overruled, so one needs to be able to customize in php to even change the default setting the plugin sets, but that can be a strategy since genesis framework users tend to be more willing to do that. You could also make that filterable or set it off by default and offer a filter to activate that.
At the moment the plugin isn’t really connecting Sensei to genesis for most pages. By setting Sensei theme support, most Sensei pages just don’t use genesis at all. Forcing the sidebar just obfuscated that fact. When one wants to go without sidebars that fact becomes visible. Adding the genesis layout setting to archives was a nice touch, but the settings are not used in the frontend layout ( and even if the frontend was build using genesis, setting the layout in the plugin would overrule that setting anyway).
For now I have made custom copies of the templates (that use genesis) and put them in my child theme. Perhaps at some point I will look how to incorporate them in the plugin when you haven’t done that at that point. Up until now I had solved this issue by using css to not diplay the sidebar, but I wanted to stop generating them too.
Hope it helps,
Regards, Hans
]]>Hi, I have a problem with the template single-course.php
When I activate the plugin appears the next error:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/rubencar/public_html/wp-includes/post-template.php on line 316
Regards
]]>Hi Christoph,
Thanks for the connect plugin, it seems to solve the integration problem mostly. I use the Studiopress Essence Pro Genesis child theme and have set genesis to show full-width by default.
The problem is that when you added logic to force the content-sidebar layout to some Sensei pages, you left out the same for sensei’s messages archive and the quiz pages, so those pages still force the sidebar below the content.
I changed the code in site-layout.php to do the same for those pages and it seems to correct the problem. Perhaps it can be in the next update too?
function gcfws_force_content_sidebar_layout_on_cpt_posts() {
if ( ! is_singular( array( 'course', 'lesson', 'question', 'quiz' ) )
&& ! is_post_type_archive('sensei_message') ) {
return;
}
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
}
After this, my next challenge will be to change sensei’s css to use more of the theme’s styling, like button and list styles.
Thanks,
Hans
Sensei is deprecating $woothemes_sensei;
PHP line 112 $woothemes_sensei;
https://senseilms.wordpress.com/2015/11/28/1-9-developers-take-note/
Global Sensei Object
Going forward the recommended way to access Sensei from a plugin or theme will be to use Sensei(). Most of the functionality will also be using a static function approach. Deprecated in 2.1 $woothemes_sensei, It will still work but using it will throw errors.
https://www.ads-software.com/plugins/genesis-connect-for-woothemes-sensei/
]]>WooThemes has still not fixed Sensei to output .entry-content inside of .entry. Instead, they’re outputting .entry inside of .entry. Thus, many body-content stylings are breaking (most notably ULs and OLs).
Can your plugin fix that, or do I have to continue modifying Sensei’s code to correct their mistake?
I’ve reported the problem, but they haven’t fixed it in months.
https://www.ads-software.com/plugins/genesis-connect-for-woothemes-sensei/
]]>Greetings,
Thanks for making the plugin. I have a=installed and activated it but have a random widget at the bottom of each lesson. Any suggestions?
https://www.ads-software.com/plugins/genesis-connect-for-woothemes-sensei/
]]>