Liam Who
asked 10 years ago

i have added a plugin "WP Club Manager" and it has pushed the sidebar below content.
they offer a fix but i have no idea how to correctly put it in place.

Link to support fix: https://wpclubmanager.com/docs/themeing/#document-8

suggested code:

By inserting a few lines in your theme’s functions.php file, First unhook the WP Club Manager wrappers;
remove_action( 'wpclubmanager_before_main_content', 'wpclubmanager_output_content_wrapper', 10); remove_action( 'wpclubmanager_after_main_content', 'wpclubmanager_output_content_wrapper_end', 10);

Then hook in your own functions to display the wrappers your theme requires;
add_action('wpclubmanager_before_main_content', 'my_theme_wrapper_start', 10); add_action('wpclubmanager_after_main_content', 'my_theme_wrapper_end', 10);

function my_theme_wrapper_start() { echo '<section id="main">'; }

function my_theme_wrapper_end() { echo '</section>'; }

Make sure that the markup matches that of your theme. If you’re unsure of which classes or ID’s to use take a look at your theme’s page.php for a guide.

I cant get this to work for DW Focus

1 Answers
DominicStaff
answered 10 years ago

Hi,
At the moment, our theme does not compatible with the WP Club Manager plugin and I can not access the link: https://wpclubmanager.com/docs/themeing/#document-8
You can send me username & password of your site (via private answer) for further checking.
Regards,

Powered by DW Question & Answer Pro