The following sample shows how you can use theme filters to alter the default classes applied to the Icon Box…
The following snippet will alter the default date in the WPBakery Post Grid module with the last modified date.
/** * Register new block for the Post Content element. * * @link https://total.wpexplorer.com/docs/snippets/custom-block-post-content-module/ */ add_filter( 'vcex_post_content_blocks', function( $blocks )…
add_filter( 'vcex_no_posts_found_message', function( $message, $atts ) { return 'Your custom no posts found message or HTML here.'; }, 10, 2…
function my_default_heading_tags() { return 'h4'; } add_filter( 'vcex_icon_box_heading_default_tag', 'my_default_heading_tags' ); add_filter( 'vcex_feature_box_heading_default_tag', 'my_default_heading_tags' );
Various WPBakery Modules have the ability to select a "Style" such as Accordions and Tabs and the design of these…
If you want a unique page header for a specific page(s) and you don't like any of the preset page…
Example CSS for targeting the WPBakery Visual Composer accordion modules so you can alter the title styling when active. Important:…
// Add new setting to the blog grid module to enable trim titles (new setting will be added to the…
.wpb-js-composer .vc_tta.vc_general .vc_tta-panel-body { -webkit-transition: none !important; -o-transition: none !important; transition: none !important; }
If you are using the Post Views Counter plugin and wish to display post views using the Total Post Meta…
// Change the default heading tag for the Total Heading Builder Module add_filter( 'vcex_heading_default_tag', function() { return 'h2'; // options:…
Here is an example on how to change the load more settings for any Total WPBakery module with load more…
This snippet will allow you to alter the readmore text in the post types grid module loop so you can…
This sample snippet shows you how to trim the Post Types Grid title to reduce the title to a specific…
By default the Google Map widget in the WPBakery page builder removes the pointer-events when not hovering on the Google…
This snippet will override the default published date for the Total Post Types Grid builder block to instead display the…
add_filter( 'vc_role_access_all_caps_role', function( $role ) { $user_role = 'editor'; // change this to the user role you want to manually…
This snippet will show you how to manually filter the post types that are enabled for the WPBakery page builder…
Every Total grid module for the page builder includes filters for each "section" so you can customize the output. For…
Below is some javascript for creating a simple toggle row show/hide functionality. The way it works is you would give…
body.paged .wpb_animate_when_almost_visible { opacity: 1; filter: alpha(opacity=100); -webkit-animation-duration: 0s; animation-duration: 0s; -webkit-animation: none; -webkit-transform: none; -ms-transform: none; -o-transform: none; transform:…
function myprefix_remove_vc_grid_fallback_img( $output ) { if ( ! get_post_thumbnail_id() ) { return; } return $output; } add_filter( 'vc_gitem_template_attribute_post_image_url', 'myprefix_remove_vc_grid_fallback_img', 99…
add_action( 'vc_after_init', function() { remove_action( 'wp_head', [ wpbakery(), 'addNoScript' ], 1000 ); } );
This snippet shows how you can modify the output of any "block" or "section" of the Post Types Grid element.…