Skip to content

Instantly share code, notes, and snippets.

View ahmedmusawir's full-sized avatar
:electron:
Working from home

ahmedmusawir

:electron:
Working from home
View GitHub Profile
@ahmedmusawir
ahmedmusawir / gist:500f65f6fdfaa5a1b0c32b0aa3a461b8
Created February 22, 2018 10:11
ACF - SIMPLE GALLERY CODE - LA CASA
<main id="slider-block-mfw-001" class="d-flex align-items-center">
<section class="container-fluid">
<?php
$gallery_1 = get_field('slider_block_mfw_001_gallery');
if ($gallery_1) :
?>
<article class="slider-holder wow slideInUp">
@ahmedmusawir
ahmedmusawir / gist:dde9317c1a947d71626b46bd1b61d4ec
Created February 22, 2018 09:46
ACF GALLERY CODE - LEE BREWER
<?php
$gallery_1 = get_field('gallery_1');
if ($gallery_1) :
?>
<section id="gallery_1" class="imb-home-top-image-grid">
<main class="">
@ahmedmusawir
ahmedmusawir / gist:2207e09cb1b259d3f07ff821b22aa170
Created February 21, 2018 01:32
ACF – INCLUDING ACF AS A NON PLUGIN AND DISABLE FROM WP ADMIN
<?php
// 1. customize ACF path
add_filter('acf/settings/path', 'my_acf_settings_path');
function my_acf_settings_path( $path ) {
// update path
$path = get_stylesheet_directory() . '/acf/';
@ahmedmusawir
ahmedmusawir / gist:b8b39629ec01877c6674db1d05df5dac
Last active February 19, 2018 07:15
SHOPIFY BUY BTN ONLY WITHOUT IFRAME - REVISED FOR RICO - HAND CODED
<!--=======================================================
= SHOPIFY - COMMONT BUY BUTTON CODE =
========================================================-->
<style type="text/css">
/* Button Style */
.shopify-buy-frame {
text-align: center;
}
.shopify-buy__btn {
border-radius: 50px;
@ahmedmusawir
ahmedmusawir / gist:59aae2d1d1282cf7b5ad0e7465297a70
Created February 19, 2018 01:11
SHOPIFY - WP-SHOPIFY - WP PRODUCT PAGE CODE USING WP SHOPIFY FREE PLUGIN
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Moose_Framework
*/
get_header('shopify'); ?>
@ahmedmusawir
ahmedmusawir / gist:56c47538e64588114751410eca0599f7
Created February 19, 2018 01:06
SHOPIFY BUY BTN EMBED CODE
<figure class="add-to-cart-btn text-center" style="margin-bottom: 5rem;">
<!-- <a class="btn btn-default btn-lg" href="#">ADD TO CART</a> -->
<div id='product-component-26e18817b91'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
@ahmedmusawir
ahmedmusawir / gist:b79a6faf54205ef9e2305ef014de0bd8
Created February 19, 2018 01:01
SHOPIFY BUY BTN ONLY WITHOUT IFRAME
<h1 class="text-center">Single Shopify Product BUTTON ONLY</h1>
<h3>
Product is coming from Rico's store - Nuva Organics
</h3>
<script src="https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js" type="text/javascript"></script>
<script type="text/javascript">
var client = ShopifyBuy.buildClient({
@ahmedmusawir
ahmedmusawir / gist:e80a31d3f04f56049250782150073488
Created February 10, 2018 05:04
JS - WOW JS - HOW IT WORKS
<link rel="stylesheet" href="css/animate.css">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<div class="wow bounceInUp">
Content to Reveal Here
</div>
@ahmedmusawir
ahmedmusawir / gist:db79c8ef761077e98e228aa319d2ceae
Last active February 8, 2018 06:41
JS - FEATHER LIGHT - LIGHT BOX - TESTING CODE
<a href="#" data-featherlight="http://via.placeholder.com/350x150">Open image in lightbox</a>
<a href="#" data-featherlight="/myhtml.html .selector">Open ajax content in lightbox</a>
<a href="#" data-featherlight="<p>Fancy DOM Lightbox!</p>">Open some DOM in lightbox</a>
@ahmedmusawir
ahmedmusawir / gist:1712a4fb07b22d3621dce57300055f6a
Created January 26, 2018 07:01
YOUTUBE CLEANUP - TIME SET - AUTO START - ROB SITE
<iframe class="scale-with-grid" width="100%" height="600px" src="http://www.youtube.com/embed/thoO2kHdI9U?wmode=opaque&autoplay=1&loop=1&start=0&end=556&controls=1&showinfo=0&rel=0" allowfullscreen=""></iframe>