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() { | |
jQuery(".content-title p:contains('i')").html(function(_, html) { | |
return html.replace(/(i)/g, '<span class="pink">$1</span>'); | |
}); | |
// Pink I's | |
jQuery(".content-title p:contains('I')").html(function(_, html) { | |
return html.replace(/(I)/g, '<span class="pink">$1</span>'); | |
}); |
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
// Logo Fade | |
<?php wp_enqueue_script('jquery'); ?> | |
<script> | |
var didScroll; | |
var lastScrollTop = 0; | |
var delta = 5; | |
var triggerHeight = 50; | |
jQuery(window).scroll(function(){ | |
didScroll = true; |
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
span.zoom-this { | |
transform-origin:center 0px!important; | |
margin: 0px auto !important; | |
max-width: 100% !important; | |
display: block!important; | |
} | |
_______ THE JS ________ |
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).on("scroll",function(){ | |
if(jQuery(window).scrollTop() + $(window).height() > $(document).height() - 60){ | |
jQuery("div.sticky").addClass("stuck"); | |
} else{ | |
jQuery("div.sticky").removeClass("stuck"); | |
} | |
}); |
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
<?php wp_enqueue_script('jquery'); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
// This will fire when document is ready: | |
jQuery(window).resize(function() { | |
// This will fire each time the window is resized: | |
if(jQuery(window).width() <= 700) { | |
// if smaller or equal | |
jQuery('a.call-tell-btn').attr("href", "tel:1234567890"); | |
} else { |
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
<?php wp_enqueue_script('jquery'); ?> | |
<script> | |
jQuery(document).ready(function () { | |
jQuery(".landing-left-half").click(function(){ | |
window.location = jQuery(this).find("a:first").attr("href"); | |
return false; | |
}); | |
jQuery(".landing-top-right").click(function(){ | |
window.location = jQuery(this).find("a:first").attr("href"); | |
return false; |
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
<?php wp_enqueue_script('jquery'); ?> | |
<?php | |
if( get_field('no_banner_image') ) | |
{ | |
echo " | |
<style> | |
.class-one { | |
background:red | |
} |
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
<h1><?php echo get_the_title(6); ?> </h1> | |
<?php | |
$id=6; | |
$post = get_post($id); | |
$content = apply_filters('the_content', $post->post_content); | |
echo $content; | |
?> |
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
<?php wp_enqueue_script('jquery'); ?> | |
<script> | |
jQuery(function() { | |
jQuery("a.post-thumbnail ").removeAttr("href"); | |
}); | |
</script> |
NewerOlder