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 // remove this line | |
// Register OnTop Widget | |
genesis_register_sidebar( array( | |
'id' => 'ontop', | |
'name' => __( 'OnTop', 'jan' ), | |
'description' => __( 'This the Ontop widget', 'jan' ), | |
) ); |
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
.features { | |
background: url(images/default-featurebg.jpg) no-repeat center top; | |
clear: both; | |
min-height: 450px; | |
padding: 2%; | |
} | |
features-widgetarea { | |
padding: 2%; | |
float: right; |
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 // remove this line | |
//* Activate Manual excerpt on Pages | |
add_post_type_support('page', 'excerpt'); | |
//* Show Manual excerpt After Header | |
function jan_show_manual_excerpt() { | |
$post = get_post( get_the_ID() ); |
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
(function($) { | |
// Initialize the Lightbox and add rel="gallery" to all gallery images when the gallery is set up using [gallery link="file"] so that a Lightbox Gallery exists | |
$(".gallery a[href$='.jpg'], .gallery a[href$='.png'], .gallery a[href$='.jpeg'], .gallery a[href$='.gif']").attr('rel','gallery').fancybox(); | |
})(jQuery); |
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
// Enqueue Scripts/Styles for our Lightbox | |
function child_theme_add_lightbox() { | |
wp_enqueue_script( 'fancybox', get_bloginfo( 'stylesheet_directory' ) . '/js/jquery.fancybox.pack.js', array( 'jquery' ), false, true ); | |
wp_enqueue_script( 'lightbox', get_bloginfo( 'stylesheet_directory' ) . '/js/lightbox.js', array( 'fancybox' ), false, true ); | |
wp_enqueue_style( 'lightbox-style', get_bloginfo( 'stylesheet_directory' ) . '/css/jquery.fancybox.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_theme_add_lightbox' ); |
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 | |
//*shortcode handler for columnization | |
//* One Half | |
function shortcode_half_first( $atts, $content = null ) { | |
$content = wptexturize( $content ); | |
$content = wpautop( $content ); |
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 //* Don't copy the php | |
//* Accessible Read More links for Genesis | |
add_filter('excerpt_more', 'jan_read_more_link'); | |
add_filter( 'the_content_more_link', 'jan_read_more_link' ); | |
function jan_read_more_link() { | |
$trimtitle = get_the_title(); | |
$shorttitle = wp_trim_words( $trimtitle, $num_words = 5, $more = '…' ); |
OlderNewer