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
jQuery(document).ready(function($) { | |
var defaultPanel = parseInt(getParam('panel')); | |
$( "#accordion1" ).accordion({ | |
active: defaultPanel, | |
header: '> div.my-accordion-section > h3', | |
heightStyle: 'content' | |
}); | |
function getParam(name) { |
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
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
add_action( 'genesis_entry_footer', 'genesis_post_info', 9 ); | |
//* Customize the entry meta in the entry header (requires HTML5 theme support) | |
add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
function sp_post_info_filter($post_info) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_edit]'; | |
return $post_info; |
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
add_image_size( 'home-bottom', 200, 200, 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
add_filter('widget_text', 'do_shortcode'); | |
add_shortcode('today_date', 'get_today_date'); | |
function get_today_date($atts) { | |
// return date('F j, Y'); | |
return date_i18n( get_option( 'date_format' ) ); | |
} |
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
In class-genesis-header-nav.php | |
above | |
$nav_output = $nav_markup_open . $nav . $nav_markup_close; | |
add | |
$nav = $nav . '<div class="menu-header-right"><i class="fa fa-phone"></i></div>'; |
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
//* Show custom menu in Footer | |
add_action( 'genesis_footer', 'sk_custom_menu_in_footer' ); | |
function sk_custom_menu_in_footer() { | |
$class = 'menu genesis-nav-menu menu-footer'; | |
$args = array( | |
'menu' => 'Footer Menu', // Enter name of your custom menu here | |
'container' => '', | |
'menu_class' => $class, |
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
genesis_register_sidebar( array( | |
'id' => 'home-top', | |
'name' => __( 'Home - Top', 'outreach' ), | |
'description' => __( 'This is the top section of the Home page.', 'outreach' ), | |
) ); |
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 | |
/** | |
* To display Posts on site's front page in a 2-column responsive grid. | |
* URL: http://sridharkatakam.com/posts-columns-oembed-support-excerpts-homepage-dynamik/ | |
*/ | |
// Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_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
$("body").backstretch([BackStretchImg.src],{duration:3000,fade:750}); |
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
if ( is_home() || is_front_page() ) | |
return; |