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 / any.php
Created June 30, 2017 05:32
use this with kint to get terms and taxo s
d(get_categories());
d(get_terms());
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?> ">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php bloginfo('name'); ?> | <?php wp_title(); ?></title>
<!-- font awesome icons -->
@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
@devloprs
devloprs / circle.sass
Created March 16, 2017 08:59
basic circle mixin
=circleThing($rad, $height, $width, $bg, $color)
-webkit-border-radius: $rad
-moz-border-radius: $rad
-ms-border-radius: $rad
border-radius: $rad
height: $height
width: $width
line-height: $height
<?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
/* 2nd level menu styling white on black Bradley Hamilton */
.site-header .sub-menu {
border-top: none;
}
.site-header .genesis-nav-menu .sub-menu,
.site-header .genesis-nav-menu .sub-menu a {
width: 250px;
}
@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