Tagged: enfold, header, layout architect, Product, sidebar, transparent, woocommerce
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!
Hey Michael!
thanks a lot again!
Best regards,
Andy