Community Forums › Forums › Archived Forums › General Discussion › Authority Pro – Content wrappers with Woocommerce Sensei
Tagged: Sensei
- This topic has 4 replies, 2 voices, and was last updated 8 years, 10 months ago by
Lorentz.
-
AuthorPosts
-
December 4, 2017 at 5:56 am #214233
Lorentz
MemberI'm using the Authority Pro theme and Sensei plugin from Woocommerce.
I'm experiencing that the sidebar navigation for the course is shown underneath my content - like also mentioned in an example here: https://docs.woocommerce.com/document/sensei-and-theme-compatibility/
I've tried to add this to the function.php for the Authority theme, but without success (recommended from the Sensei documentation):
add_filter( 'sensei_load_default_supported_theme_wrappers', '__return_false' );
Is there a special place in the function.php file I need to put this piece of code?
If I need to specify my own wrappers - can I do this within the Genesis "hooks" edit? And if yes, in which areas?
Help is much appreciated:)
BR Lorentz
December 4, 2017 at 6:07 am #214236Victor Font
ModeratorAnywhere in functions.php should be fine, but are you certain it's the wrappers and not CSS related? If the content area is too wide, the sidebar will be pushed down and appear to be underneath it.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?December 4, 2017 at 6:18 am #214237Lorentz
MemberI'm not certain that it's the wrappers, but in the sensei documentation, they show the exact example and suggest that I should specify my own wrappers in the functions.php file if the above mentioned code didn't work.
December 4, 2017 at 7:01 am #214239Lorentz
MemberI've tried to add this
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();
}to the functions.php but it's based on the guide to resolve this issue with Sensei and the TwentyTen theme, so I'm probably using some wrong div ids perhaps but I don't know where to find them.
December 5, 2017 at 5:00 am #214273Lorentz
MemberAfter much swearing and googling I found this bad boy: https://wordpress.org/plugins/genesis-connect-for-woothemes-sensei/
Problem solved.
If I ever meet mr. Herr who made this plugin I will buy him a damn good cup of coffee. I'll buy him two.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.