Skip to content

Alter Any Theme Template Part via Callable Function or Custom File

Add Parameters to all Youtube Lightbox Videos

add_action( 'wp_footer', function() { ?> ( function( $ ) { 'use strict'; // Get lightbox elements var $lightboxLinks = $( '.wpex-lightbox' ); // Loop through all lightbox elements $lightboxLinks.each( function() { var $this = $( this ), $href = $this.attr(…

Read more

Add Custom Image Size for Page Header Backgrounds

By default the page header title with background displays the full image selected so you can crop it prior to uploaded if wanted. However, if you want to add a new custom image size for this it is possible via…

Read more

Display Menu Search Dropdown on Hover

add_action( 'wp_footer', function() { ?> ( function( $ ) { 'use strict'; $( '.search-toggle-li' ).hover( function() { $( this ).toggleClass( 'active' ); $( '#searchform-dropdown' ).toggleClass( 'show' ); } ); } ) ( jQuery ); <?php } );

Read more

Conditionally Show/Hide Footer Widgets

add_action( 'totaltheme/footer/is_enabled', function( $bool ) { // Hide for all blog related queries and single posts if ( is_singular( 'post') || wpex_is_blog_query() ) { $bool = false; } // Return boolean return $bool; } );

Read more
Back To Top