No longer kept up to date.
Please see Sridhar's fork.
// Register and Hook Top Navigation Menu | |
add_action('genesis_before_header', 'sample_before_header_menu', 10); | |
function sample_before_header_menu() { | |
register_nav_menu( 'top', 'Top Navigation Menu' ); | |
genesis_nav_menu( array( | |
'theme_location' => 'top', | |
'menu_class' => 'menu genesis-nav-menu menu-top', | |
) ); |
<?php | |
add_filter( 'oembed_providers', 'oembed_fix_twitter', 10, 1 ); | |
function oembed_fix_twitter( $providers ) { | |
$providers[ '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' ] = array( 'https://api.twitter.com/1/statuses/oembed.{format}', true ); | |
return $providers; | |
} |
<?php | |
// Don't include the above. | |
add_filter( 'genesis_get_image_default_args', 'prefix_stop_auto_featured_image' ); | |
/** | |
* Stop Genesis archives from using first attached image as fallback when no featured image is set. | |
* | |
* @param array $args Default image arguments. | |
* |
No longer kept up to date.
Please see Sridhar's fork.
<script> | |
// Create an array of images that you'd like to use | |
var images = [ | |
'image1.jpg' | |
, 'image2.jpg' | |
, 'image3.jpg' | |
]; | |
// Get a random number between 0 and the number of images | |
var randomNumber = Math.floor( Math.random() * images.length ); |
input { | |
height: 34px; | |
width: 100%; | |
border-radius: 3px; | |
border: 1px solid transparent; | |
border-top: none; | |
border-bottom: 1px solid #DDD; | |
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF; | |
} |
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |