Using hooks with this theme

Posted in: Newspaper
Post count: 3

Hello,

I am using a third party plugin called WPclubmanager that manages players’ profiles.

I just purchased the Newspaper theme and the “sidebar” for the players’ pages are not on the right side, they are below the content. This is normal due to incompatibility between the wpclubmanager plugin and this theme.

However, the plugin owner is aware and said that we need to use HOOKS for the theme.
https://docs.wpclubmanager.com/article/64-third-party-theme-compatibility

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>';
}

Can anyone help me on how to do this, because I am new to this theme.

Thank you

Post count: 20688

Hi,

I don’t know what exactly the code needs you to enter in it, the wrappers in a page could be seen in the page.php for example
https://www.screencast.com/t/uqfzPpzi
You could use that and make tests.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.