Skip to content

Instantly share code, notes, and snippets.

View prosantamazumder's full-sized avatar

Prosanta Mazumder prosantamazumder

View GitHub Profile
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 / 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);
@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 / WordPress Login Logout Condition in Menu
Created April 2, 2020 19:33
If User Logged in then show something and show another
//Add This Code Function.php
function add_loginout_link( $items, $args ) {
if (is_user_logged_in() && $args->theme_location == 'primary_menu') {
$items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
}
elseif (!is_user_logged_in() && $args->theme_location == 'primary_menu') {
$items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>';
}
return $items;
@prosantamazumder
prosantamazumder / Wp Menu Add Class li. Menu add class li a.
Last active May 13, 2020 08:48
If you Read Then Code Then you see How add Class in WordPress Menu With add Class jQuery
<?php
//Menu li add class
-----------------
function add_menuclass($ulclass) {
return preg_replace('/<li /', '<li class="scroll"', $ulclass);
}
add_filter('wp_nav_menu','add_menuclass');
@prosantamazumder
prosantamazumder / jQuery Context Menu Down Website Keyboard Right Click Down or Off
Created April 2, 2020 19:49
jQuery Context Menu Down Website Keyboard Right Click Down or Off
$(function() {
"use strict";
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
window.oncontextmenu = function () {
return false;
@prosantamazumder
prosantamazumder / Sublime Text Install Package Name
Created April 2, 2020 20:05
Sublime Text Install some helpful Package
Package Name
--------------------------
1. Emmet
2. AutoFileName
3. AllAutocomplete
4. BracketHighlighter
5. Local History
6. SublimeLinter
7. ColorPicker
8. MarkDown Editing
@prosantamazumder
prosantamazumder / create shortcode WordPress
Created April 2, 2020 20:27
create wp short code WordPress
SHORTCODE.PHP
------------------------
function functionname(){
ob_start();
?>
HTMLCODEHERE..
<?php
@prosantamazumder
prosantamazumder / Walker_Nav_Primary.php
Created April 3, 2020 14:52
WordPress Quick Started Menu With Dropdown
<?php
/*
@package sunsettheme
========================
WALKER NAV CLASS
========================
*/
@prosantamazumder
prosantamazumder / nav Tabs.html
Last active April 4, 2020 08:42
jQuery Custom nav Tabs
<div class="row">
<div class="col-md-6">
<div id="tabs-content">
<div id="tab1" class="tab-content">
<h2>a/h2>
</div>
<div id="tab2" class="tab-content">
<h2>TAB CONTENT</h2>
</div>
<div id="tab3" class="tab-content">