The following snippet can be used to move the page header title area into the site header area. I'm not…
This code will register a new widget area (Mobile Sidebar) above your site content for mobile only (to display at…
If for some reason you wish to remove the WooCommerce thumbnails from the entries (shop/archive/related) you can do so using…
If for some odd reason you need to remove the links to your WooCommerce products from the entries you can…
By default when using the WPBakery Accordion element whenever you click on a new item it will change the URL…
.woocommerce-product-gallery__image { position: relative; } .woocommerce-product-gallery__image::before { font-family: "ticons"; content: "\f00e"; /* change this to the icon you want -…
This snippet will insert the default meta output used on the blog into the Blog Grid & Carousel modules right…
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 )…
If you enable the Dev style Header it will load all the header components but without any CSS. Here is…
In WordPress there is no way to use the core WP_Query class to pull items from different multisite installations. For…
Below are 2 very basic sample functions showing you how you could insert content before or after Total builder modules/shortcodes.…
This snippet shows how you could hook into the "wpex_get_grid_entry_columns" filter to alter the default columns for a post type…
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' );
Using theme hooks you can easily add any code above your post content. This includes an advertisement banner or Adsense.…
By default the Total theme uses a comma to separate categories/terms when displaying them as a list such as in…
// Remove author URL from bio add_filter( 'wpex_post_author_bio_data', function( $data ) { unset( $data['posts_url'] ); return $data; } ); //…
Various WPBakery Modules have the ability to select a "Style" such as Accordions and Tabs and the design of these…
/** * Exclude Passed Events from Builder Elements. * * @link https://total.wpexplorer.com/docs/snippets/exclude-tribe-events-wpbakery/ */ add_filter( 'vcex_query_args', function( $args ) { $showing_events…
This snippet shows how you could easily change the labels/text displayed for the social sharing buttons.
This snippet will register a new "Header Aside" widget area under Appearance > Widgets or Customize > Widgets which you…
If you want to be able to define Google fonts in your theme but not have the actual fonts loaded…
Most themes by default display the term description on all paginated pages of your taxonomy archives, however, you can easily…