• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

How To Modify The WordPress Navigation Menu Widget

This tutorial provides the code which enables you to modify the default output for the Navigation Menu widget included in all WordPress themes.

This method enables you to modify the widget via the safety of your child theme so your modifications won’t be lost when WordPress updates the code for this widget.

Installation #

There’s 2 steps relating to usage of the files in the download folder :

Step 1 : Upload the file named custom-nav-menu-widget.php to your child themes root directory.

Step 2 : Copy & paste the code from the functions.php file to the end of your child themes functions file.

Register or login to access the download folder :

Register for full access

Nav Menu

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems