This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include opening tag. | |
// Enqueue Font Awesome. | |
add_action( 'wp_enqueue_scripts', 'your_site_font_awesome' ); | |
function your_site_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include opening tag | |
// add 'noindex' meta to archive | |
add_action( 'wp_head', 'add_noindex' ); | |
function add_noindex() { | |
if(is_archive()) { | |
echo '<meta name="robots" content="noindex,follow" />'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the PHP opening tag | |
// Enqueue Scripts | |
add_action( 'wp_enqueue_scripts', 'pinterest_button_script' ); | |
function pinterest_button_script() { | |
wp_enqueue_script( 'pin-me-int', get_stylesheet_directory_uri() .'/js/pinme.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); | |
wp_enqueue_script( 'mystudio', get_stylesheet_directory_uri() .'/js/rainastudio.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// Where PinMe.js should look for images (body, .post, #very-specific-element, etc.) | |
$(".content").pinMe({pinButton: '<i class="fa fa-pinterest fa-2x"></i>'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Eric Hermanson | |
*/ | |
;(function($) { | |
'use strict'; | |
$.fn.pinMe = function (options) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the PHP opening tag | |
// Echo Phone Number to Site Description | |
function psi_phone_after_des() { | |
echo '<p class="phone-no"><a href="tel:206.322.3186">206.322.3186</a></p>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the PHP opening tag | |
// Full Width All Pages | |
function all_pages_full_width( $full ) { | |
if ( is_page( ) ) { | |
$full = 'full-width-content'; | |
return $full; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT add the PHP opening tag | |
// Add Icon Fonts to theme | |
add_action( 'wp_enqueue_scripts', 'rs_enqueue_styles' ); | |
function rs_enqueue_styles() { | |
wp_enqueue_style( 'fa', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), '4.5' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT include the opening PHP tag | |
// Add search form to 'primary' menu | |
function theme_menu_extras( $menu, $args ) { | |
// Change 'primary' to 'secondary' to add extras to the secondary navigation menu | |
if ( 'primary' !== $args->theme_location ) | |
return $menu; | |
// add a search form to the navigation menu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do NOT the PHP opening tag | |
// Custom widget area for contact form | |
genesis_register_sidebar( array( | |
'id' => 'contact-before-footer', | |
'name' => __( 'Contact Before Footer', 'rainastudio' ), | |
'description' => __( 'Entry Contact Before Footer Content Widget', 'rainastudio' ), | |
)); |