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 | |
| add_action( 'genesis_after_entry', 'md_after_entry_widget_area' ); | |
| /*Display after-entry widget area on the genesis_after_entry action hook.*/ | |
| function md_after_entry_widget_area() { | |
| if ( ! is_singular( 'page' ) || ! current_theme_supports( 'genesis-after-entry-widget-area' ) ) { | |
| return; | |
| } | |
| genesis_widget_area( 'after-entry', array( |
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
| /* -------------------------------------------- | |
| Accordion Styles | |
| ----------------------------------------------*/ | |
| .accordion { margin: 0 0 30px; border-top: 1px solid #DDD; border-right: 1px solid #DDD; border-left: 1px solid #DDD; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } | |
| .accordion dt { border-bottom: 1px solid #DDD; } | |
| .accordion dd { display: none; padding: 20px; border-bottom: 1px solid #DDD; } | |
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 the slug from published post permalinks. Only affect our CPT though. | |
| */ | |
| function md_remove_cpt_slug( $post_link, $post, $leavename ) { | |
| if ( 'POST TYPE NAME' != $post->post_type || 'publish' != $post->post_status ) { | |
| return $post_link; | |
| } |
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 | |
| add_theme_support( 'custom-header', array( | |
| 'header-selector' => '.site-title a', | |
| 'header-text' => false, | |
| 'height' => 157, | |
| 'width' => 1200, | |
| ) ); | |
| ?> |
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 | |
| add_action( 'genesis_meta', 'md_home_genesis_meta' ); | |
| /** | |
| * Add custom loop/widget support for homepage. File name should be home.php | |
| * | |
| */ | |
| function md_home_genesis_meta() { | |
| //* Add md-home body class |
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 | |
| class YOURCUSTOMWidget extends WP_Widget | |
| { | |
| function YOURCUSTOMWidget() | |
| { | |
| $widget_ops = array('classname' => 'YOURCUSTOMWidget', 'description' => 'Widget Description' ); | |
| parent::__construct('YOURCUSTOMWidget', 'YOURCUSTOM Widget', $widget_ops); | |
| } | |
| function form($instance) |
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 | |
| function md_filter_plugin_updates( $value ) { | |
| if( isset( $value->response[ plugin_basename(__FILE__) ] ) ) | |
| unset( $value->response[ plugin_basename(__FILE__) ] ); //Duplicator | |
| return $value; | |
| } | |
| add_filter( 'site_transient_update_plugins', 'md_filter_plugin_updates' ); | |
| ?> |
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 | |
| // * Relocate titles on Page, Post and other single pages | |
| add_action( 'genesis_after_header','relocate_entry_title_singular' ); | |
| function relocate_entry_title_singular() { | |
| if ( ! is_singular() ) | |
| return; | |
| echo '<div class="entry-header-wrapper"><div class="wrap">'; | |
| genesis_do_post_title(); | |
| genesis_post_info(); |