Skip to content

Instantly share code, notes, and snippets.

@digitalchild digitalchild/functions.php
Last active Sep 28, 2017

Embed
What would you like to do?
WC Vendors Pro Full Width Header in X Theme
<?php
// Move the WC Vendors Pro header in the X theme. This will make the header full width for the main container.
add_action('x_after_view_global__slider-below', 'display_the_banner_here');
function display_the_banner_here () {
if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
do_action( 'woocommerce_before_main_content', array( $wcvendors_pro->wcvendors_pro_vendor_controller, 'store_main_content_header'), 1 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.