Skip to content

Instantly share code, notes, and snippets.

@studiopress
studiopress / style.css
Created August 30, 2017 19:33
Sample CSS using Muli from Google Fonts.
body {
background-color: #fff;
color: #000;
font-family: 'Muli', sans-serif;
font-size: 18px;
font-size: 1.8rem;
font-weight: 300;
line-height: 1.875;
margin: 0;
}
@studiopress
studiopress / sample.js
Last active April 16, 2019 15:10
Sample embed code for Typekit Fonts
<script src="https://use.typekit.net/XXXXXXX.js"></script>
<script>try{Typekit.load({ async: false });}catch(e){}</script>
@studiopress
studiopress / functions.php
Created August 30, 2017 19:31
Function that includes code removal for Google Fonts.
<?php
// Do NOT include the opening php tag.
wp_enqueue_style( 'monochrome-fonts', '//fonts.googleapis.com/css?family=Muli:200,300,300i,400,400i,600,600i|Open+Sans+Condensed:300', array(), CHILD_THEME_VERSION );
@studiopress
studiopress / functions.php
Created August 30, 2017 19:30
Function that includes code removal for Google Fonts.
<?php
// Do NOT include the opening php tag.
// Enqueue scripts and styles.
add_action( 'wp_enqueue_scripts', 'monochrome_enqueue_scripts_styles' );
function monochrome_enqueue_scripts_styles() {
wp_enqueue_style( 'monochrome-fonts', '//fonts.googleapis.com/css?family=Muli:200,300,300i,400,400i,600,600i|Open+Sans+Condensed:300', array(), CHILD_THEME_VERSION );
wp_enqueue_style( 'monochrome-ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), CHILD_THEME_VERSION );
@studiopress
studiopress / genesis-simple-faqs-js-animation-false.php
Created August 14, 2017 19:05
Genesis Simple FAQs JS Animation
add_filter( 'gs_faq_js_animation', '__return_false' );
@studiopress
studiopress / remove-structural-wraps.php
Created July 6, 2016 15:04
Remove Structural Wraps
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove support for structural wraps
remove_theme_support( 'genesis-structural-wraps' );
@studiopress
studiopress / after-entry-widget.php
Created February 2, 2016 21:29
Add After Entry Widget Area
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Add support for after entry widget
add_theme_support( 'genesis-after-entry-widget-area' );
@studiopress
studiopress / atmosphere-pro-front-page-2g.html
Created October 26, 2015 13:28
Atmosphere Pro Front Page 2: Text 7
<i class="icon ion-ios-locked-outline"></i>
<h4>Airtight Security</h4>
<p>We built the Genesis Framework to follow all WordPress security best practices.</p>
@studiopress
studiopress / front-page-4a.html
Created April 16, 2015 05:21
Author Pro Gists
<blockquote>The ability to “see” places in this way is what makes this author able to create authentic travel stories. He moves the reader by transporting him to a place, and moving him emotionally.
<strong>HARRY LANDERS</strong>
<em>Editor, Adventure Magazine</em>
</blockquote>
@studiopress
studiopress / front-page-7.html
Last active June 14, 2018 18:27
Altitude Pro: Front Page 7
<h4>Two weeks free</h4>
<h2>Give it a try</h2>
<p>Fully featured and with no obligations.</p>
<p><a href="http://demo.studiopress.com/altitude/sample/" class="button">Sign up for 14 days free</a></p>