Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Edwin Velez
*
* Starting point for all WordPress themes.
*
* @package EdwinVelez
* @author Edwin Velez (https://edwinvelez.net)
* @license GPL-2.0-or-later
* @link https://edwinvelez.net
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Starts the Genesis Framework engine.
require_once get_template_directory() . '/lib/init.php';
add_action( 'wp_enqueue_scripts', 'ev_enqueue_scripts' );
function ev_enqueue_scripts() {
wp_enqueue_style( 'dashicons' );
}
// Initialize and configure Genesis responsive menus.
genesis_register_responsive_menus( genesis_get_config( 'responsive-menus' ) );
<?php
/**
* Genesis Responsive Menus
*
* Responsive menu settings used by Genesis Framework child theme.
*
* @package EdwinVelez
* @author Edwin Velez (https://edwinvelez.net)
* @license GPL-2.0-or-later
* @link https://edwinvelez.net
*/
/*
* See: https://studiopress.github.io/genesis/developer-features/amp/
* See: https://github.com/studiopress/responsive-menus
*/
return array(
'script' => array(
'menuClasses' => array(
'others' => array( '.nav-primary' ),
),
),
'extras' => array(
'media_query_width' => '960px',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.