This file contains 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
/* SIDE NAV CSS DESKTOP */ | |
.mfp-content { | |
width: 30% !important; | |
/* OPTION TO MAKE NAV TRANSPARENT */ | |
/* DELETE OR TURN TO 1 IF YOU DONT WANT THE MENU TO BE TRANSPARENT */ | |
opacity: 0.95 !important; | |
} | |
li.html.custom.html_nav_position_text { | |
padding: 0px; | |
} |
This file contains 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($) { | |
var referrer = document.referrer; | |
if (referrer == 'urlhere/') { | |
$("#ID").css("display", "block"); | |
} | |
}); |
This file contains 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
(function($){ | |
$(document).ready(function(){ | |
$("#VIDID").bind('ended', function(){ | |
location.href="/urlhere"; | |
}); | |
}); | |
}(jQuery)); |
This file contains 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
<video id="vid" width="100%" controls poster="/posterurlhere" playsinline autoplay muted><source src="/videourl.mp4" type="video/mp4">Your browser does not support HTML5 video.</video><script type="text/javascript"> | |
video = document.getElementById('vid'); | |
video.addEventListener('ended',function() {alert('video is ended');window.location.href = '/redirecturl';}) | |
</script> |
This file contains 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
/* RCP REGISTER FORM STYLING */ | |
/* CSS TO REMOVE USERNAME AND PASSWORD AGAIN */ | |
p#rcp_user_login_wrap, p#rcp_password_again_wrap { | |
display: none; | |
} | |
/* END CSS TO REMOVE USERNAME AND PASSWORD AGAIN */ |
This file contains 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
/* WORDPRESS REDIRECT ON LOGOUT */ | |
add_action('wp_logout','auto_redirect_after_logout'); | |
function auto_redirect_after_logout(){ | |
wp_redirect( home_url("/login") ); | |
exit(); | |
} | |
/* END WORDPRESS REDIRECT ON LOGOUT */ |
This file contains 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
<style> | |
/* EMAIL FORM STYLING */ | |
#subscribe-form-email-light { | |
border: none; /* BORDER OF EMAIL FORM*/ | |
box-shadow: none; | |
border-bottom: solid 1px black; | |
padding-right: 4px; | |
font-family: oswald, FontAwesome; | |
color: black !important; | |
background: transparent !important; |
This file contains 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
/* CUSTOM REDIRECT PER USER ROLE AND PAGE ID */ | |
add_action('template_redirect', 'redirect_user_role'); | |
function redirect_user_role($priority = 1) | |
{ | |
if(current_user_can('Administrator') && is_page('1988')) | |
{ | |
wp_redirect('/urlhere'); | |
} | |
if ( is_user_logged_in() && is_page('1883')) | |
{ |
This file contains 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
//LOAD FONT AWESOME | |
add_action( 'wp_enqueue_scripts', 'enqueue_load_fa' ); | |
function enqueue_load_fa() { | |
wp_enqueue_style( 'load-fa', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); | |
} | |
// END LOAD FONT AWESOME |
NewerOlder