Skip to content

Add Custom Gap Options

Add Custom Gap Options

function myprefix_wpex_column_gaps( $gaps ) { $gaps['3'] = '3px'; return $gaps; } add_filter( 'wpex_column_gaps', 'myprefix_wpex_column_gaps' );

Read more

Display Menu Descriptions in Main Menu

add_filter( 'walker_nav_menu_start_el', function( $item_output, $item, $depth, $args ) { if ( 'main_menu' == $args->theme_location && $item->description ) { $item_output = str_replace( '', '' . $item->description . '', $item_output ); } return $item_output; }, 10, 4 );

Read more

Add Content Between Grid Filter & Grid

// Use the $atts variable to check your current module attributes and display content accordingly // Also you can use WP_Query to display content from any page/post function myprefix_after_filter_content( $content, $atts ) { $content = 'YOUR CUSTOM CONTENT HERE'; return…

Read more

Show Different Sliders For Polylang

// This is just an example...you will probably want to adjust to also check for the current page or other // conditionals based on where your slider is located. function my_polylang_slider( $slider ) { if ( function_exists( 'pll_current_language' ) )…

Read more

Alter The Fixed Header Logo Dynamically

/** * Alter the fixed header logo dynamically * * IMPORTANT: You page must have a default logo defined for "non-fixed" header in order * for it to display a logo on the fixed header. */ function myprefix_fixed_header_logo( $logo )…

Read more

Redirect Users After Failed Login Attemp

function myprefix_redirect_after_login_fail( $username ) { // Check submission referrer $referrer = wp_get_referer(); // If referrer is valid and it's not the default log-in screen redirect if ( ! empty( $referrer ) && ! strstr( $referrer, 'wp-login' ) && ! strstr(…

Read more

VC Support For “Lazy Load for Videos” Plugin

/* Simply add this custom CSS to the site to fix the issues with the Lazy Load for Videos Plugin */ .wpb_video_widget .wpb_video_wrapper, .responsive-video-wrap, .responsive-audio-wrap { padding: 0 !important; position: static !important; } .wpb_video_widget .wpb_wrapper iframe, .responsive-video-wrap iframe, .responsive-audio-wrap iframe,…

Read more
Back To Top