Skip to content

Add Version Number To Your Child Theme Script Query Parameter

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