[Support request] Adding Beaver Themer Part support for Woocommerce

Home Forums Support [Support request] Adding Beaver Themer Part support for Woocommerce

Home Forums Support Adding Beaver Themer Part support for Woocommerce

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #466556
    Mark

    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.

    #467165
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.