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

    Those often working with the advanced layout builder to create pretty product pages in WooCommerce may be interested in even more control of the page layout like transparent header, no or different siderbar for specific products as well as any other option Enfold offers from the layout metabox on pages. This can easily be achieved by putting the following code into the functions.php of a child theme:

    add_filter( 'avf_builder_boxes', 'mmx_avf_builder_for_products' );
    function mmx_avf_builder_for_products( $metabox ) {
        foreach( $metabox as &$meta ) {
            if( $meta['id'] == 'layout' ) {
                $meta['page'][] = 'product';
            }
        }
        return $metabox;
    }
    

    Have fun!

    #560651

    Hey Michael!

    thanks a lot again!

    Best regards,
    Andy

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