Home › Forums › Themes Support › Claue › Sensei compatibility
- This topic has 9 replies, 2 voices, and was last updated 6 years, 4 months ago by Harry.
-
AuthorPosts
-
-
August 31, 2018 at 10:11 am #24262
Hello!
Is Claue compatible with Sensei?
I’m not entirely sure I understand this article if it’s not or how to make it happen.
Thank you
-
August 31, 2018 at 7:07 pm #24274
Hi,
We don’t check our theme with this plugin. I think our theme work well with the case like in the topic https://docs.woocommerce.com/document/sensei-and-theme-compatibility/
Just add below code to claue-child > functions.php
add_action( 'after_setup_theme', 'declare_sensei_support' ); function declare_sensei_support() { add_theme_support( 'sensei' ); }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
August 31, 2018 at 8:13 pm #24277
Hi Harry,
Thank you for your response.
The code you gave me doesn’t work I was reading and I think the code is only if your theme is 100% compatible but it’s not, which is the reason why I opened up this ticket.
How can I make it compatible, once I create a course, the whole theme breaks for the course pages just like in the documentation I posted. ( see image attached)
What code do I need to add to make it compatible?
Attachments:
You must be logged in to view attached files. -
September 1, 2018 at 1:12 pm #24288
Hi,
Please add more code in functions.php
add_filter( 'sensei_load_default_supported_theme_wrappers', '__return_false' ); global $woothemes_sensei; remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 ); remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 ); add_action('sensei_before_main_content', 'my_theme_wrapper_start', 10); add_action('sensei_after_main_content', 'my_theme_wrapper_end', 10); function my_theme_wrapper_start() { echo '<div id="container"><div id="content" role="main">'; } function my_theme_wrapper_end() { echo '</div><!-- #content --> </div><!-- #container -->'; get_sidebar(); }
If issue still there please send me account and link of course to check.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
September 2, 2018 at 6:10 am #24310
Hi Harry,
Thank you for your response!
I added the code and the problem persists.
Here’s what one of the course pages looks like http://holistichorsetrainer.com/course/gentle-horse-training-w-starting-under-saddle-2/
-
September 2, 2018 at 11:46 pm #24325
Hi,
Please add below code to fix
.page.col-full {display: flex;} #main.col-left {width: 65%; padding-right: 30px;} .page.col-full .sidebar {width: 35%;}
And remove code in functions.php
add_filter( 'sensei_load_default_supported_theme_wrappers', '__return_false' ); global $woothemes_sensei; remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 ); remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 ); add_action('sensei_before_main_content', 'my_theme_wrapper_start', 10); add_action('sensei_after_main_content', 'my_theme_wrapper_end', 10); function my_theme_wrapper_start() { echo '<div id="container"><div id="content" role="main">'; } function my_theme_wrapper_end() { echo '</div><!-- #content --> </div><!-- #container -->'; get_sidebar(); }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
September 4, 2018 at 8:50 am #24374
Hi Harry,
Thank you so much for your response.
This is the way course pages look now, how can I make it full width so that everything on the right side of the page is gone?
http://holistichorsetrainer.com/course/gentle-horse-training-w-starting-under-saddle-2/
Thank you!
-
September 4, 2018 at 5:37 pm #24390
Hi,
Please change prev code to
.page.col-full {display: flex; padding: 0 30px;} #main.col-left {width: 65%; padding-right: 30px;} .page.col-full .sidebar {width: 35%;}
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
September 4, 2018 at 8:45 pm #24406
Good morning Harry,
The code didn’t change anything, if you look at the picture everything looks the same, it’s as if Claue is just taking over everything when the Course page should be entirely just Sensei content.
How can I get rid of the everything on the right side of the page?
Thank you
Attachments:
You must be logged in to view attached files.
-
-
September 4, 2018 at 9:26 pm #24412
Hi,
By default the Sensei plugin auto generate sidebar. Please contact plugin author for help.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.