pport for custom header add_theme_support( 'custom-header', array( 'width' => 600, 'height' => 160, 'flex-height' => true, 'flex-width' => true, 'header-text' => false, ) ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for after entry widget add_theme_support( 'genesis-after-entry-widget-area' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 2 ); //* Add Image Sizes add_image_size( 'featured-image', 720, 400, true ); //* Rename primary and secondary navigation menus add_theme_support( 'genesis-menus' , array( 'primary' => __( 'Primary Navigation', 'genesis-child' ), 'secondary' => __( 'Footer Menu', 'genesis-child' ) ) ); //* Reposition the secondary navigation menu remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_footer', 'genesis_do_subnav', 5 ); //* Reduce the secondary navigation menu to one level depth add_filter( 'wp_nav_menu_args', 'genesis_sample_secondary_menu_args' ); function genesis_sample_secondary_menu_args( $args ) { if ( 'secondary' != $args['theme_location'] ) { return $args; } $args['depth'] = 1; return $args; } //* Modify size of the Gravatar in the author box add_filter( 'genesis_author_box_gravatar_size', 'genesis_sample_author_box_gravatar' ); function genesis_sample_author_box_gravatar( $size ) { return 90; } //* Modify size of the Gravatar in the entry comments add_filter( 'genesis_comment_list_args', 'genesis_sample_comments_gravatar' ); function genesis_sample_comments_gravatar( $args ) { $args['avatar_size'] = 60; return $args; } // Remove Header Right widget area register_sidebar( 'header-right' ); // Reposition the primary navigation menu remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_header', 'genesis_do_nav' ); // Remove Primary Navigation's wrap add_theme_support( 'genesis-structural-wraps', array( 'header', 'subnav', 'footer-widgets', 'footer' ) ); // Remove custom Genesis custom header style remove_action( 'wp_head', 'genesis_custom_header_style' ); add_filter( 'genesis_seo_title', 'custom_header_inline_logo', 10, 3 ); function custom_header_inline_logo( $title, $inside, $wrap ) { if ( get_header_image() ) { $logo = '' . esc_attr( get_bloginfo( 'name' ) ) . ' Homepage'; } else { $logo = get_bloginfo( 'name' ); } $inside = sprintf( '%s%s', trailingslashit( home_url() ), $logo, get_bloginfo( 'name' ) ); // Determine which wrapping tags to use $wrap = genesis_is_root_page() && 'title' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p'; // A little fallback, in case an SEO plugin is active $wrap = genesis_is_root_page() && ! genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : $wrap; // And finally, $wrap in h1 if HTML5 & semantic headings enabled $wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h1' : $wrap; return sprintf( '<%1$s %2$s>%3$s', $wrap, genesis_attr( 'site-title' ), $inside ); } function abte_add_site_description_class( $attributes ) { $attributes['class'] .= ' screen-reader-text'; return $attributes; } function be_remove_genesis_page_templates( $page_templates ) { unset( $page_templates['page_archive.php'] ); unset( $page_templates['page_blog.php'] ); return $page_templates; } add_filter( 'theme_page_templates', 'be_remove_genesis_page_templates' ); // Add post navigation add_action( 'genesis_after_loop', 'genesis_prev_next_post_nav' ); function be_remove_metaboxes( $_genesis_theme_settings_pagehook ) { remove_meta_box( 'genesis-theme-settings-blogpage', $_genesis_theme_settings_pagehook, 'main' ); } genesis_register_sidebar( array( 'id' => 'header-responsive', 'name' => __( 'Header Resonsive', 'wpsites' ), 'description' => __( 'Header responsive widget area', 'wpsites' ), ) ); add_action( 'genesis_theme_settings_metaboxes', 'be_remove_metaboxes' ); /* remove home page title */ add_action( 'get_header', 'remove_page_title' ); function remove_page_title() { if ( is_page() ) { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); }else { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title', 2 ); } } ////Header Responsive add_action ('genesis_after_header','genesischild_afterheader_position', 7); function genesischild_afterheader_position () { echo '
'; genesis_widget_area( 'header-responsive', array( 'before' => '', 'after' => '', ) ); echo '
'; } //---------------------------------- add_filter('display_featured_image_genesis_modify_title_overlay', 'display_featured_image_genesis_modify_rav'); function display_featured_image_genesis_modify_rav( $html) { $return = str_replace("", "div>START MY FREE STRATEGY SESSION TODAY!", $return); } add_action( 'wp_enqueue_scripts', 'add_font_awesome_icons' ); function add_font_awesome_icons() { wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); } Contact Us - Precision Injury Law