This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prevent redirect if login form failed | |
add_action( 'wp_login_failed', 'my_front_end_login_fail' ); | |
function my_front_end_login_fail( $username ) { | |
$referrer = $_SERVER['HTTP_REFERER']; | |
if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) { | |
wp_redirect( $referrer . '?login=failed' ); | |
exit; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
let carouselSelector = '.my-carousel'; /* Change to your carousel class */ | |
let statusSelector = '.oxy-carousel-builder_status'; /* Change to your text component class */ | |
let $carousel = $(carouselSelector).find($(carouselSelector).children().data('carousel')); | |
var flkty = $carousel.data('flickity'); | |
if (flkty) { | |
function updateStatus() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Styles the Radio field as clickable image for Fluent Forms | |
* | |
* Use: Paste into Custom CSS Section of your Form | |
* Add class "fancy-input" to container of all inputs that need the fancy styling | |
* | |
* Forked version of Sebastian Berger from inital post Fluent Forms FB Group - https://bit.ly/37BBpet | |
* FB Post - https://bit.ly/2ZEn2BG | |
* | |
* Full Links at bottom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner { | |
transform: none; | |
} | |
.oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner::before { | |
transform: none; | |
opacity: 1; | |
} | |
.oxy-burger-trigger .hamburger--slider.is-active .hamburger-inner::after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
if(window.angular) return; | |
$('.oxy-tabs').on('click', function() { | |
let tabContent = '#' + $(this).attr('data-oxy-tabs-contents-wrapper'); | |
let carousels = $(tabContent).find('.oxy-carousel-builder'); | |
carousels.each(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.oxy-off-canvas .menu-item a[href*=\\#]').on('click', function (event) { | |
if(this.pathname === window.location.pathname){ | |
jQuery('body').removeClass('off-canvas-toggled'); | |
jQuery('.oxy-off-canvas').removeClass('oxy-off-canvas-toggled'); | |
jQuery(jQuery('.offcanvas-inner').data('trigger-selector')).find('.hamburger').removeClass('is-active'); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--columns-gap: 1rem; | |
} | |
@media (min-width:782px) { | |
.wp-block-column:not(:first-child) { | |
margin-left: var(--columns-gap); | |
} | |
} | |
@media (min-width:600px) and (max-width:781px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hash = window.location.hash.substr(1); | |
if (hash == '%%ELEMENT_ID%%') { | |
setTimeout(function(){ | |
jQuery([document.documentElement, document.body]).animate({ | |
scrollTop: jQuery('#' + '%%ELEMENT_ID%%').offset().top - 100 | |
}, 1000); | |
jQuery('#' + '%%ELEMENT_ID%%').trigger('click'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* For when the mouse moves on to the image */ | |
.brands img:hover { | |
-webkit-transform: scale(.65) translateY(-4px); | |
-ms-transform: scale(.65) translateY(-4px); | |
transition: all .4s ease-in-out; | |
transform: scale(1.2) translateY(-4px); | |
} | |
/* For when the mouse moves off the image */ | |
.brands img { |
NewerOlder