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
<===================HTML JQUERY PLUGN========================> | |
1---> Product zoom ---- http://www.elevateweb.co.uk/image-zoom/examples --> done | |
2---> Light Box ---- http://lokeshdhakar.com/projects/lightbox2/ --> done | |
3---> Sticky Menu ---- https://github.com/garand/sticky --> done | |
4---> Category Menu ---- http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_slide_toggle --> done | |
5---> Preloader ---- http://joaopereirawd.github.io/fakeLoader.js/demo/demo8.html --> done | |
6---> Owl carousel ---- http://owlgraphic.com/owlcarousel/demos/transitions.html --> 2/done | |
7---> Slick Slider ---- http://kenwheeler.github.io/slick/----https://github.com/kenwheeler/slick/ | |
8---> Masonary ---- https://github.com/desandro/masonry |
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
(function($) { | |
$('#hoverta_scroll-up').on('click', function() { | |
$("html, body").animate({ | |
scrollTop: 0 | |
}, 1200); | |
return false; | |
}); | |
})(window.jQuery); |
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
<?php | |
// ADD NEW FEATURED IMAGES META BOXES | |
function listing_images_add_metabox () { | |
add_meta_box( 'listingimagediv', __( 'Home Slide Image', 'text-domain' ), 'listing_images_metabox', 'portfolio', 'side', 'low'); | |
} | |
add_action( 'add_meta_boxes', 'listing_images_add_metabox' ); | |
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
<?php | |
get_header(); | |
/* | |
Template Name: pagename | |
*/ | |
?> | |
<?php | |
$loop = new WP_Query( array( | |
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
<?php | |
/** | |
*Function creates post duplicate as a draft and redirects then to the edit post screen | |
* | |
*/ | |
function rd_duplicate_post_as_draft(){ | |
global $wpdb; | |
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'rd_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) { | |
wp_die('No post to duplicate has been supplied!'); |
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
<?php | |
READ_ME PLEASE | |
YOU CAN USE THE CODE DIRECT FUNCTION.PHP | |
/**================================== | |
* Enqueue scripts and styles way 1. | |
===================================*/ |
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
================================================== | |
STANDARD RESPONSIVE MEDIA QUERY CSS | |
================================================== | |
/* XL Device :1200px. */ | |
@media (min-width: 1200px) and (max-width: 1500px) { | |
} | |
/* LG Device :992px. */ | |
@media (min-width: 992px) and (max-width: 1200px) { |
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
====================================== | |
if else WordPrss Page ID condition | |
====================================== | |
<?php if ( is_page('110') ) : ?> | |
//HTML CODE HERE... | |
<?php else : ?> | |
//HTML CODE HERE... |