Change Published Date to Modified Date in WPBakery Post Grid
The following snippet will alter the default date in the WPBakery Post Grid module with the last modified date.
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://totalwptheme.com/docs/snippets/custom-block-post-content-module/ */ add_filter( 'vcex_post_content_blocks', function( $blocks ) { $blocks['my_custom_block_callback'] = 'My Custom Block Name'; return $blocks; } ); /** * Callback function for the "my_custom_block_callback" Post Content…
If you enable the Dev style Header it will load all the header components but without any CSS. Here is some basic CSS to get you started if you can use if you want a left logo, left menu and…
In WordPress there is no way to use the core WP_Query class to pull items from different multisite installations. For this reason if you want to insert a Total module on a multisite that queries items from a different site…
Below are 2 very basic sample functions showing you how you could insert content before or after Total builder modules/shortcodes. Note that the action does pass on both the $shortcode and $atts variables. The $shortcode variable is the name of…
This snippet shows how you could hook into the "wpex_get_grid_entry_columns" filter to alter the default columns for a post type archive. However, if you are using the Post Types Unlimited plugin you have settings available for this so you don't…
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. Here is a sample snippet of code showing how you can add a banner at the top of all blog…
By default the Total theme uses a comma to separate categories/terms when displaying them as a list such as in the Post Meta. You can easily alter this default separator using a theme filter like the example below which will…