This file contains hidden or 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
//*Enqueue Font Awesome for icons | |
add_action( 'wp_enqueue_scripts', 'child_enqueue_scripts_styles' ); | |
function child_enqueue_scripts_styles() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), CHILD_THEME_VERSION ); | |
} | |
//*Add Open Graph Stuff |
This file contains hidden or 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
<form action="#" method="post"> | |
<input type="text" tabindex="500" value="NAME" onblur="if(this.value == '') { this.value='NAME'}" onfocus="if (this.value == 'NAME') {this.value=''}" name="name" id="input-name"> | |
<input type="text" tabindex="501" value="EMAIL" onblur="if(this.value == '') { this.value='EMAIL'}" onfocus="if (this.value == 'EMAIL') {this.value=''}" name="email" id="input-name"> | |
<input type="submit" tabindex="502" value="Subscribe" id="input-submit" name="submit"> | |
</form> |
This file contains hidden or 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
<div class="video-container"> | |
<img src="...splash.jpg" alt="my splash" width="901" height="513" class="videosplash aligncenter size-full wp-image-1970" data-video="https://player.vimeo.com/video/xyz123?title=0&byline=0&portrait=0andamp;autoplay=1" /> | |
</div> | |
<script type="text/javascript"> | |
jQuery(function( $ ){ | |
$('img').click(function(){ | |
var video = '<iframe src="'+ $(this).attr('data-video') +'"></iframe>'; | |
$(this).replaceWith(video); |
This file contains hidden or 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
//Gravity forms - keep form visible if validation problems | |
add_filter("gform_confirmation_anchor", create_function("","return true;")); |
This file contains hidden or 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
// hook into the init action and call create_boat_taxonomies when it fires | |
add_action( 'init', 'create_boat_taxonomies', 0 ); | |
// create 2 taxonomies, Type, Manufacturer, for the post type "boat" | |
function create_boat_taxonomies() { | |
//*Type | |
$types = array( | |
// Pledge Items |
This file contains hidden or 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
//* Rejig the header | |
//*Create Header Left Widget Area | |
//* Register widget areas | |
genesis_register_sidebar( array( | |
'id' => 'header-left', | |
'name' => __( 'Header - Left', 'agentpress' ), | |
'description' => __( 'This is the Left section of the header.', 'agentpress' ), | |
) ); |
This file contains hidden or 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
remove_action('genesis_loop','genesis_do_loop'); | |
add_action('genesis_loop','child_shopping_loop'); | |
add_action( 'wp_enqueue_scripts', 'bootstrap_enqueue_scripts' ); | |
function child_shopping_loop() { | |
This file contains hidden or 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
function child_before_loopargs(){ | |
global $wp_query; | |
$args = array( | |
'orderby' => array( 'meta_value_num' => 'DESC', 'title' => 'ASC' ), | |
'meta_key' => '_cmb2_b_year'); | |
query_posts(array_merge( $wp_query->query,$args )); | |
} |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Sermon User | |
* Description: Adds a user level with access only to Sermons via wp admin | |
* Version: 0.1.0 | |
* Author: Anne Allen | |
* Author URI: http://nustart.solutions/ | |
* License: GPL2 | |
*/ | |
This file contains hidden or 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
<script type="text/javascript" > | |
jQuery(function( $ ){ | |
function initialize() { | |
var myLatlng = new google.maps.LatLng(10.354859, -85.853784); | |
var stylez = [ | |
{ | |
featureType: "all", | |
elementType: "all", | |
stylers: [ |
NewerOlder