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 | |
// Remove eNews and Updates widget | |
add_action( 'widgets_init', 'remove_enews_updates_widget', 20 ); | |
function remove_enews_updates_widget() { | |
unregister_widget( 'Genesis_eNews_Updates' ); | |
} | |
// Remove Featured Page widget | |
add_action( 'widgets_init', 'remove_featured_page_widget', 20 ); |
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
// Add Video category sort | |
add_action( 'genesis_before_loop', 'jivedig_video_category_sort' ); | |
function jivedig_video_category_sort() { | |
echo '<h1>Video Showcase</h1>'; | |
$terms = get_terms('video_cat'); | |
echo '<div class="video_cat-sort">'; | |
echo '<div class="all-videos"><a href="/videos/">« ALL VIDEOS</a></div>'; | |
foreach ($terms as $term) { | |
echo '<a href="'.get_term_link($term->slug, 'video_cat').'">'.$term->name.'</a>'; | |
} |
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
// Add category title and description to the Video Category taxonomy archives | |
add_action( 'genesis_before_content_sidebar_wrap', 'jivedig_video_cats_archive' ); | |
function jivedig_video_cats_archive() { | |
echo '<div class="tax-title">'; | |
echo '<p>All Videos Filed Under:</p>'; | |
echo '<h2 class="archive-title">'; | |
echo single_cat_title(); | |
echo '</h2>'; | |
echo '</div>'; | |
} |
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
// Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); |
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
// Unregister other site layouts | |
genesis_unregister_layout( 'sidebar-content' ); | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); |
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
// Add and remove fields from user profile | |
add_filter('user_contactmethods', 'modify_top_contact_methods', 0); | |
function modify_top_contact_methods($profile_fields) { | |
// Remove old fields | |
unset($profile_fields['aim']); | |
unset($profile_fields['yim']); | |
unset($profile_fields['jabber']); | |
// Add new fields |
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 Jetpack module from Dashboard for non-admins | |
function ap_remove_jetpack_page( ) { | |
if ( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) { | |
remove_menu_page( 'jetpack' ); | |
} | |
} | |
add_action( 'admin_menu', 'ap_remove_jetpack_page', 999 ); | |
// Disable OpenGraph in Jetback as written here: http://yoast.com/jetpack-and-wordpress-seo/ | |
add_filter( 'jetpack_enable_opengraph', '__return_false', 99 ); |
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 the edit link | |
add_filter ( 'genesis_edit_post_link' , '__return_false' ); |
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="one-half first"> | |
</div> | |
<div class="one-half"> | |
</div> |