Search results for: admin
Custom Social Share Email Body
Can be used to modify the default email body (content) when a user clicks the social…
Custom Social Share Email Subject
If you wish to modify the email subject text when clicking the social share email icon…
Add Custom Dynamic Variables
The Total theme allows you to use "Dynamic Variables" in various element text fields such as…
Whitelist Callback Functions for use in Theme Elements
Various elements in the Total theme allow you to select a callback function for the output…
Untitled Snippet
HTML5
Disable Search
Disable Search
Accordion Template Helper
This snippet will allow you to use Section Divider fields in an "accordion-like" manner by adding…
Showcase IDX plugin - Replace all Permalink URLs with current URL in Schema
This snippet replaces all the Permalink URLs with the current URL in Schema markup.
Explicit Fixed Width and Height
add_filter( 'the_content', 'add_image_dimensions' ); function add_image_dimensions( $content ) { preg_match_all( '/]+>/i', $content, $images); if (count($images) <…
Remove Google Fonts
add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );
Ensure Webfont is Loaded
add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );
Stop Lazy Load
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
Remove Unused JS
/** * We will Dequeue the jQuery UI script as example. * * Hooked to the…
Remove Gutenberg CSS
//Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style(…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');