Skip to content

Instantly share code, notes, and snippets.

View prosenjit-manna's full-sized avatar
🎯
Focusing

Prosenjit Manna prosenjit-manna

🎯
Focusing
  • Itobuz Technologies
View GitHub Profile
//Title: Custom DropDown plugin by PC
//Documentation: http://designwithpc.com/Plugins/ddslick
//Author: PC
//Website: http://designwithpc.com
//Twitter: http://twitter.com/chaudharyp
(function ($) {
$.fn.ddslick = function (method) {
if (methods[method]) {
@charset "UTF-8";
/*!
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url("fonts/fontawesome-webfont.eot?v=4.3.0");
@prosenjit-manna
prosenjit-manna / analytics.js
Last active February 18, 2016 10:13
analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60956992-1', 'auto',{'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['developerTest'] );
ga('send', 'pageview');
@prosenjit-manna
prosenjit-manna / gist:d670be34efa55054873a
Last active February 16, 2016 10:02
Veggie Design works
Product list page with sidebar
Product list page without sidebar
Product details page with sidebar
Wordpress all widget design
404 page design
Product details without sidebar / already has design
Cart page / already has design
Checkout page / already has design
Login Page / already has design
@prosenjit-manna
prosenjit-manna / readme.md
Last active February 15, 2016 05:16
awesome spice features
  • One click demo install
  • Page builder included
  • Revolution slider
  • Powerfull theme options
  • Page speed need to add
  • Child theme need to add
  • Responsive design
  • Redux theme options
  • W3c validate
  • Bootstrap 3 supported
@prosenjit-manna
prosenjit-manna / CustomWidgetFile.php
Created January 16, 2016 03:55 — forked from jonathonbyrdziak/CustomWidgetFile.php
EMPTY WIDGET Plugin code to create a single widget in wordpress.
<?php
/**
* Duplicate this file as many times as you would like, just be sure to change the
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com
*
* Plugin Name: Empty Widget
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs.
* Author: RedRokk Interactive Media
* Version: 1.0.0
* Author URI: http://www.redrokk.com
@prosenjit-manna
prosenjit-manna / gist:05bfc25c3e5dc0183c2e
Created December 23, 2015 05:08 — forked from corsonr/gist:9152652
WooCommerce : add custom fields to product variations
<?php
//Display Fields
add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 3 );
//JS to add fields for new variations
add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' );
//Save variation fields
add_action( 'woocommerce_process_product_meta_variable', 'save_variable_fields', 10, 1 );
/**
@prosenjit-manna
prosenjit-manna / README.md
Created December 14, 2015 10:27 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@prosenjit-manna
prosenjit-manna / How To Hide The Select Arrow On Firefox.md
Created December 9, 2015 09:47 — forked from joaocunha/How To Hide The Select Arrow On Firefox.md
How to hide <select> dropdown's arrow in Firefox when using "-moz-appearance: none;".

This is no longer a bug. I'm keeping the gist for historical reasons, as it helped to get it fixed. Make sure to read the notes by the end of the post.

How to remove hide the select arrow in Firefox using -moz-appearance:none;

TL;DR (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
@prosenjit-manna
prosenjit-manna / woocommerce-custom-cart-item-data.php
Created December 5, 2015 09:38 — forked from RadGH/woocommerce-custom-cart-item-data.php
Get and set custom cart item/product information prior to WooCommerce checkout, and carry those valus over to Order Item Metadata.
<?php
/*
Instructions:
1) Save data when adding to cart
When adding an item to your cart, use ld_woo_set_item_data. The best action for this to occur is
"woocommerce_add_to_cart". The first parameter for this action contains the "cart_item_key",
which is required for the function.