Skip to content

Instantly share code, notes, and snippets.

View prosantamazumder's full-sized avatar

Prosanta Mazumder prosantamazumder

View GitHub Profile
@prosantamazumder
prosantamazumder / index.html
Created August 23, 2017 20:05
Isotope with masonry jQuery Plugin
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Isotope Filtering</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/font-awesome.css">
//Here is the code
<?php if ( $posts->have_posts() ) : //IF POST AVAILABLE
$count = 1;
$Number = 1;
while( $posts->have_posts() ) : $posts->the_post(); //WP CUSTOM QUERY
// GET POST SUPPORT DATA
$thumbnails = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full');
======================================
if else WordPrss Page ID condition
======================================
<?php if ( is_page('110') ) : ?>
//HTML CODE HERE...
<?php else : ?>
//HTML CODE HERE...
==================================================
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) {
==================================================
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 );
@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.
===================================*/
@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 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 / 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