Site logo

Archived topic

Adding Beaver Themer Part support for Woocommerce

1 reply · Started by Mark on January 9, 2018

Viewing posts 1–2 of 2

Hi There

I need to hook a Beaver Themer Part into a Woocommerce single product page.

This is the hook 'woocommerce_after_single_product_summary'

I've tried adding this to my child theme, but it's not worked:

/* Beaver Themer Parts support */

add_action( 'after_setup_theme', 'generatepress_child_header_footer_support' );

function generatepress_child_footer_support() {
add_theme_support( 'fl-theme-builder-parts' );
}

/* Beaver Themer register Parts support */

add_filter( 'fl_theme_builder_part_hooks', 'generatepress_child_register_part_hooks' );

function generatepress_child_register_part_hooks() {

return array(
array(
'label' => 'WooCommerce Single Product',
'hooks' => array(
'woocommerce_after_single_product_summary' => 'After Product Summary',
)
)
);
}

Any help would be much appreciated.

Thanks

Mark.

Might be a better question for Beaver Builder support I think, as I'm not sure how they handle their template parts.

Glancing at your code, it makes sense. However I'm not sure of the inner workings of Beaver Themer, so I can't say exactly why it's not working.

This archived topic is closed to new replies.