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
<!--call css & js file--> | |
<?php | |
function theme_files(){ | |
//css | |
wp_enqueue_style( $handle, $src, $deps, $ver, $media ); | |
wp_enqueue_style( 'owl-theme', get_template_directory_uri().'/css/owl.theme.css', array(), '1.1', 'all' ); //example |
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
.top { | |
box-shadow: 0 -5px 5px -5px #333; | |
} | |
.right { | |
box-shadow: 5px 0 5px -5px #333; | |
} | |
.bottom { | |
box-shadow: 0 5px 5px -5px #333; | |
} |
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
responsive : { | |
0 : { | |
items: 2 | |
}, | |
768 : { | |
items: 4 | |
}, | |
991 : { | |
items: 6 |
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
<!-- html --> | |
<div class="sticky_anchor"></div> | |
/* css */ | |
.sticky{ | |
position: fixed; | |
top: 0; | |
z-index: 2; |
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
$(window).scroll(function(){ | |
if ($(this).scrollTop() > 150) { | |
$('.topScrl').fadeIn(); | |
} else { | |
$('.topScrl').fadeOut(); | |
} | |
}); | |
//Click event to scroll to top | |
$('.topScrl').click(function(){ |
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
var resizeId; | |
$(window).resize(function() { | |
clearTimeout(resizeId); | |
resizeId = setTimeout(doneResizing, 500); | |
}); | |
function doneResizing(){ | |
location.reload(); | |
} |
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
Demo & Download Link: http://dimsemenov.com/plugins/magnific-popup/ | |
01. Youtube video >> | |
// html markup | |
<a href="http://www.youtube.com/watch?v=0O2aH4XLbto" class="videoBtn">Watch Video</a> | |
// javascript |
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 | |
/** | |
* Set a max limit on the number of times | |
* a repeating group can be added. | |
*/ | |
/** | |
* Setup the group field metabox | |
*/ | |
function js_limited_group_setup() { |
OlderNewer