The following snippet can be used to alter your attachment.php page layout. This is the page that is used to…
The default related post title heading tag is an h4 but you can easily change this to anything you want…
By default WordPress converts :) into a smile emoji on the frontend. The following code disables the conversion so that…
The grid filters included with the portfolio grid, staff grid, testimonials grid, post types grid modules in Total, use the…
.vcex-post-type-entry-details { position: relative; padding-bottom: 75px; } .vcex-post-type-entry-readmore-wrap { position: absolute; bottom: 20px; } .vcex-post-type-entry-readmore-wrap .theme-button { height: 35px; line-height:…
Back in version 3.2.0 of Total we removed various singular design options in the WPBakery (formerly Visual Composer) row and…
add_filter( 'get_the_time', function( $the_time, $d ) { if ( 'y' == $d ) { $the_time = $the_time . '年'; }…
You can use the following code in your child theme's functions.php file to alter the back to top scroll speed.…
add_filter( 'nav_menu_item_id', '__return_false' );
The Navigation Menu widget accordion by default triggers dropdowns when clicking on the whole parent item, however, if you want…
/** * Enable URl hash update when clicking local scroll links * */ function myprefix_enable_local_scroll_hash_update( $array ) { $array['localScrollUpdateHash'] =…
add_filter( 'the_generator', '__return_null' );
The following example shows you how you can use the "wpex_get_user_social_profile_settings_array" theme filter to add new social options for your…
By default the Total theme will not trim custom excerpts as usually the purpose of a custom excerpt is for…
add_action( 'wp_footer', function() { ?> ( function( $ ) { 'use strict'; $( document ).on( 'ready', function() { var $entriesWithRedirect…
Below is a snippet showing how you can override all the searchforms in Total (and any WordPress theme that correctly…
This snippet will allow you to set a fallback featured image anytime a featured image (post thumbnail) is requested on…
// ScrollTo and Open VC Toggle/FAQ // Usage: Give your toggle a unique ID // Then link to it like…
Total has a built-in site loading and page animation function however, if you just want a very simple pre-loader that…
By default stretch rows are hidden when the site is first loaded to prevent the "bounce" affect when the row…
// Example 1: Disable for all overlays add_filter( 'wpex_overlay_mobile_support', '__return_false' ); // Example 2: Disable on homepage only add_filter( 'wpex_overlay_mobile_support',…
// Add a new custom grid shortcode module // Usage [myprefix_custom_grid posts_per_page="4" term="4"] // You can also go to Visual…
By default SVG files are not allowed in WordPress for security reasons so they can't be uploaded, however you can…
// Remove staff relationship add_filter( 'wpex_staff_users_relations', '__return_false' ); // Removes social options add_filter( 'wpex_get_user_social_profile_settings_array', '__return_null' );
add_filter( 'wpex_shortcodes_tinymce_json', function( $data ) { // Add your custom shortcode $data['shortcodes']['my_custom_shortcode'] = array( 'text' => __( 'Custom Shortcode', 'total'…