• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Remove ‘Menu’ text from Genesis Sample

Last Updated on July 14, 2022 Favorited: 0 times

This tutorial provides the steps to remove text “Menu” from responsive Menu in any child-theme based on Genesis Framework.

Genesis Sample 2.6.1+

Open functions.php and find a similar line

/**
 * Defines responsive menu settings.
 *
 * @since 2.3.0
 */
function genesis_sample_responsive_menu_settings() {

	$settings = array(
		'mainMenu'         => __( 'Menu', 'genesis-sample' ),
		'menuIconClass'    => 'dashicons-before dashicons-menu',
		'subMenu'          => __( 'Submenu', 'genesis-sample' ),
		'subMenuIconClass' => 'dashicons-before dashicons-arrow-down-alt2',
		'menuClasses'      => array(
			'combine' => array(
				'.nav-primary',
			),
			'others'  => array(),
		),
	);

	return $settings;

}

and remove or replace text Menu from this line

		'mainMenu'         => __( 'Menu', 'genesis-sample' ),

so it will look like this

		'mainMenu'         => __( '', 'genesis-sample' ),

Genesis Sample 3.0.0+

in newer Genesis Sample theme responsive menu is directly calling from framework but function is present on child-theme/config/responsive-menus.php. Open this and find

/**
 * Genesis responsive menus settings. (Requires Genesis 3.0+.)
 */
return array(
	'script' => array(
		'menuClasses' => array(
			'others' => array( '.nav-primary' ),
		),
	),
	'extras' => array(
		'media_query_width' => '960px',
	),
);

before

        'menuClasses'      => array(

or before

		'menuClasses' => [

Add (We are overwriting the default value)

        'mainMenu'         => __( 'Menu', 'genesis-sample' ),
		'menuIconClass'    => 'dashicons-before dashicons-menu',
		'subMenu'          => __( 'Submenu', 'genesis-sample' ),
		'subMenuIconClass' => 'dashicons-before dashicons-arrow-down-alt2',

and remove/change the text ‘Menu’ from here.

Sample code:

/**
 * Genesis responsive menus settings. (Requires Genesis 3.0+.)
 */
return [
	'script' => [

		'mainMenu'         => __( '', 'genesis-sample' ), // here

		'menuClasses' => [
			
			'others' => [ '.nav-primary' ],
			'others' => [ '.nav-secondary' ],
		],
	],
	'extras' => [
		'media_query_width' => '960px',
	],
];

 

Related Posts

  • Responsive Hamburger Menu design in Genesis
  • Off-Canvas slide in-out responsive menu in Genesis
  • Expanding Search box in menu-item list in Genesis
  • Magazine style Singular Post Design in Genesis Sample
  • Post Page Blog Archive Template with Layouts in Genesis

Categories: Free Content, Genesis Tutorials Tags: Genesis Sample, menu

Reader Interactions

Comments

  1. Joe Pownall says

    July 30, 2019 at 3:35 pm

    This is the only up-to-date resource for this change, thank you!

    It’s worth noting that you don’t need all of it, if all you’re wanting to do it remove the word “Menu”. Just add:

    'mainMenu' => __( '', 'genesis-sample' ),

    right before ‘menuClasses’

  2. Aryan Raj says

    July 30, 2019 at 3:42 pm

    Yes, You are correct.

    I mentioned the one line changes for older version. It is also mentioned in https://popwp.com/remove-text-menu-from-responsive-menu-in-genesis/

    Complete menu structure is useful in this case.

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service