Skip to content

Instantly share code, notes, and snippets.

View mustafix's full-sized avatar

Mustafizur Rahman mustafix

View GitHub Profile
--------------------------------------------------------------
jQuery Script
--------------------------------------------------------------
jQuery(document).ready(function(){
// grab the initial top offset of the navigation
var sticky_navigation_offset_top = $('on your div id/class ').offset().top;
// our function that decides weather the navigation bar should have "fixed" css position or not.
1. call scrollup.js on your file
2. call css code on style.css
3. active scroll up
global $woocommerce;
//remove breadcrumb
remove_action('woocommerce_before_main_content','woocommerce_breadcrumb',20);
// Breadcumbs custom style(div or ul)
add_filter( 'woocommerce_breadcrumb_defaults', 'flipmart_woocommerce_breadcrumbs' );
function flipmart_woocommerce_breadcrumbs() {
return array(
----------------------------------------------------------------------------------------------
Database Connection
----------------------------------------------------------------------------------------------
// Error Reporting Turn On
ini_set('error_reporting', E_ALL);
//error_reporting('0');
// Setting up the time zone
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
def
jswing
easeInQuad
easeOutQuad
easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
global $product;
global $woocommerce;
$idd = get_the_ID();
//Displaying a WooCommerce product price:
$sale_price = $product->get_sale_price();
$regular_price = $product->get_regular_price();
// Displaying a WooCommerce price Currency:
@mustafix
mustafix / ajax-contact-form.html
Last active March 12, 2019 15:13
ajax-contact-form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AJAX Contact Form Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page-wrapper">
# BEGIN WordPress
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 600
php_value max_input_time 600
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /2018/edd/