Skip to content

Instantly share code, notes, and snippets.

View prosantamazumder's full-sized avatar

Prosanta Mazumder prosantamazumder

View GitHub Profile
@prosantamazumder
prosantamazumder / jQuery Plugin URL List
Created April 2, 2020 19:22
Required Some jQuery Plugins
<===================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
@prosantamazumder
prosantamazumder / CUSTOM SCROLL TO SECTION
Last active April 5, 2021 04:58
Scroll To Up Use js css and icofont no need another script
(function($) {
$('#hoverta_scroll-up').on('click', function() {
$("html, body").animate({
scrollTop: 0
}, 1200);
return false;
});
})(window.jQuery);
Twitter:
<a href="http://twitter.com/home/?status=<?php the_title(); ?> - <?php the_permalink(); ?>" title="Tweet this!" onclick="javascript:window.open(this.href,
'', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"></a>
Reddit:
<a href="http://www.reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Vote on Reddit"></a>
Stumbleupon:
<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Stumble it"></a>
@prosantamazumder
prosantamazumder / WP ADD CUSTOM FEATURED IMAGES META BOX
Created April 2, 2020 15:42
If you use the code then see result add new featured images like main featured image
@prosantamazumder
prosantamazumder / WordPress Page Template Custom Post Query Loop
Last active April 2, 2020 15:36
WordPress Custom Page Template Post Query Loop
<?php
get_header();
/*
Template Name: pagename
*/
?>
<?php
$loop = new WP_Query( array(
@prosantamazumder
prosantamazumder / WordPress Custom Post Duplicate Functions
Created April 2, 2020 15:25
WordPress post duplicate as a draft and redirects then to the edit post screen
<?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!');
@prosantamazumder
prosantamazumder / WordPress wp Resister Enqueue Style and Scripts
Created April 2, 2020 15:10
Enqueue Style Scripts Functions.php[ way 1] and Enqueue Style Scripts Create CSS/JS Define Folder [ way 2]
<?php
READ_ME PLEASE
YOU CAN USE THE CODE DIRECT FUNCTION.PHP
/**==================================
* Enqueue scripts and styles way 1.
===================================*/
==================================================
ALL SOCIAL WEBSITE ICON OR LOGO COLOR SCC
==================================================
Instagram New Logo
background: #f09433;
background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
==================================================
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) {
======================================
if else WordPrss Page ID condition
======================================
<?php if ( is_page('110') ) : ?>
//HTML CODE HERE...
<?php else : ?>
//HTML CODE HERE...