Change WooCommerce Product Entry Mobile Columns
IMPORTANT: In Total 4.9.9+ you can now select your responsive columns right in the Customizer!
IMPORTANT: In Total 4.9.9+ you can now select your responsive columns right in the Customizer!
Important: This CSS may need to be adjusted depending on your mobile menu style to position the icon as needed and on your mobile menu breakpoint (for changing the media query).
add_filter( 'wpex_menu_cart_style', function( $style ) { // Set button to standard shop link for homepage if ( is_front_page() ) { $style = 'store'; } // Return style defined in the Customizer return $style; } );
By default active classes aren't added to the portfolio, staff, testimonials items in the main menu while viewing the singular posts, however, it's very easy to add via the snippet below. This will check if the current menu item is…
Make sure to change the 300 to the ID of your menu item you are targeting. You can view this by inspecting your source code. If you prefer you can use PHP instead to add the current-menu-item class to the…
Once you add this code you can go to Appearance > Customize > Blog > Single and you will find the new block in the layout blocks at the bottom of the tab so you can move it around to…
Total has the ability to assign images to your categories/terms if you are working on some custom code and you want to grab these it's very easy, see the example below.
body #site-header, body #site-header-sticky-wrapper.is-sticky #site-header { background: #000 url( 'YOUR_IMAGE_URL' ) repeat; }
add_filter( 'wpex_shortcodes_tinymce_json', function( $data ) { // Alter the default insert code for the button shortcode $data['shortcodes']['vcex_button']['insert'] = ''; // Return data return $data; }, 40 );
add_action( 'wpex_hook_page_header_inner', function() { // Only add on blog posts if ( ! is_singular( 'post' ) ) { return; } get_template_part( 'partials/blog/blog-single-meta' ); }, 40 );