Skip to content

Instantly share code, notes, and snippets.

<?php
add_action( 'wp_enqueue_scripts', 'wps_load_scripts' );
/**
* Enqueue Isotope
* For commercially developed child themes, you must obtain a license
* from isotope.metafizzy.co for approx. $25.
*
* @author Travis Smith
* @link http://wpsmith.net
@devloprs
devloprs / breakpoints.scss
Created March 26, 2017 18:00 — forked from bullrico/breakpoints.scss
Media breakpoints for Bourbon and Neat
// Columns
$mobile-portrait-columns: 4;
$mobile-landscape-columns: 4;
$tablet-portrait-columns: 8;
$tablet-landscape-columns: 8;
$desktop-columns: 12;
// Portrait
<?php
//* Do NOT include the opening php tag
/**********************************
*
* Replace Header Site Title with Inline Logo
* Fix Genesis bug - when using static front page and blog page (admin reading settings) Home page is <p> tag and Blog page is <h1> tag
* Replace "is_home" with "is_front_page" to correctly display Home page wit <h1> tag and Blog page with <p> tag
*
* @author AlphaBlossom / Tony Eppright
@devloprs
devloprs / shrinking-header.js
Last active March 11, 2017 14:53 — forked from About2git/functions.php
Shrinking header in Genesis similar to that in Centric Pro
jQuery(function( $ ){
$(".site-header").after('<div class="bumper"></div>');
$(window).scroll(function () {
if ($(document).scrollTop() > 50 ) {
$('.site-header').addClass('shrink');
} else {
$('.site-header').removeClass('shrink');
}
@devloprs
devloprs / animated background gradient.css
Created March 8, 2017 21:41 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(182deg, #0e5a71, #f7951e);
background-size: 400% 400%;
-webkit-animation: AnimationName 2s ease infinite;
-moz-animation: AnimationName 2s ease infinite;
-o-animation: AnimationName 2s ease infinite;
animation: AnimationName 2s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:52% 0%}
    50%{background-position:49% 100%}
    100%{background-position:52% 0%}
@devloprs
devloprs / .gitignore
Created March 8, 2017 03:14 — forked from salcode/.gitignore
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@devloprs
devloprs / my.css
Created February 27, 2017 05:11 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(108deg, #3e98d5, #fabc05);
background-size: 400% 400%;
-webkit-animation: ab-fab 52s ease infinite;
-moz-animation: ab-fab 52s ease infinite;
-o-animation: ab-fab 52s ease infinite;
animation: ab-fab 52s ease infinite;
@-webkit-keyframes ab-fab {
    0%{background-position:0% 48%}
    50%{background-position:100% 53%}
    100%{background-position:0% 48%}