How to move Navigation Menu inside the header in Genesis

There are many ways to add Navigation Menu into the Header area in genesis Child Themes. We will discuss couple of them in this article.

Widget Menu:
Widgets made life easier for newbies. Here’s how to add Navigation Menu via Widget.
1-) Login to your WordPress dashboard
2-) Go to Widgets under Appearance
3-) Drag “Custom Menu” Widget into the Header sidebar.
4-) Select your Desired Menu into the drop down and hit Save, you’re done

Code Snippet
Sometimes you need to move the Menu from it’s place to a custom location. In my case, I had to do that before the Header (title/logos, widget etc).
Here’s my code snippet for that:

<?php
/* Do NOT include the opening php tag
 Reposition the primary navigation menu */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );

Here’s the explanation of above code:
The first line: remove_action(….); unhook the Primary Menu from Genesis After Header Hook while the second line code add it into the before header.
You can add the Primary Menu anywhere you want by changing the Hook name into the above add_action(..) function.

Sign Up To Get The Latest Digital Trends

Our Newsletter

Related Posts

Golang vs. Java: What Should You Pick?

Introduction Today, the selection of programming language represents one of the pivotal factors in the constantly developing sphere of software development. We are all future developers or already experienced engineers making choices of tools that we need for our projects. Two main players in this regard are Golang (Go) and Java. This article will take…

How to Monetize Your Mobile App: Strategies for Success

Building an app in this app dominated era of the world is one thing; maintaining that app’s profitability is a whole new ball game. This is the rub, with millions of app in use around the world today, how can you turn sweat into dollars? Alright, let us look into some of the strategies for…

How Augmented Analytics Can Transform Your App’s Data Insights

Introduction This is where apps that provide valuable data superior from apps that do not, are able to shine. But with such large quantities of data available, the real difficulty lies in making sense of all of it. Introducing augmented analytics; which leverages on artificial intelligence, machine learning and natural language handling to explicate insights,…

Common Product Strategy Mistakes and Ways to Avoid Them

Consequently, having a clear cut product strategy is a crucial factor especially in today’s dynamic business environment to mean the difference between a magnificent success story and total failure. Creating new business products entails a significant amount of time, effort, and work in organizations businesses and the creation involves large amounts of time and often…

Selenium 4.7 Automation with Python

Are you ready to walk into the amazing world of Selenium Automation with the support of Python? This is a detailed guide on Selenium 4, or at least that will be the aim of this post. 7; automation and how you can take advantage of automation to manage your testing. Welcome to this automation trip…

Turing CEO on Why Developers Choose Turing for Finding Remote Software Engineering Jobs

In today’s world and increasing speed of work environment changes understanding the notion of work has been different and remote employment has become a strong contention. The opportunities are limitless for any technically proficient software engineer since a lot of companies in the today’s world globalized workplace are hiring remotely skilled professionals. While operating in…

MEAN vs. MERN: Which Is the Best Tech Stack for Your Next Project?

Selecting the right technology stack for your project depends on many factors and is one of the significant steps within the modern world of web development. Two rather often mentioned stacks include the MEAN stack, and the MERN stack. Neither is weaker and they both serve the purpose of precise and effective communication but each…

What Is Nest.js? Why Should You Use It?

Nest. js has been stirring up the field of Node rather successfully. JS development, and, if you are a developer or thinking of developing web applications using Node. JS, you may be wondering what all the commotion is all about. Let us explore in details about Nest in this article. js to introduce it to…

Things to Expect When Transitioning from an Individual Contributor to a Software Professional

Introduction The goal of shifting from an individual contributor to a software professional is quite a leap in every person’s career path. It is a shift from implementing given processes where one is a mere coder to carrying out procedures that define leadership, teamwork, and conceptualization. However, this transition is hardly devoid of possibilities for…

5 Signs of Toxic Work Culture and How to Deal With Them

Introduction They have also defined work culture as the personality of a given organization. It outlines the code of practice on employees’ conduct, cooperation and productivity in the firm. Organizational culture that is healthy at the workplace is one which promotes the welfare and productivity of the employees. Here, let’s confront five distinctly different toxic…

What Is Best for App Development: Flutter, Dart Language or Something Else?

In the rapidly growing sector of mobile application development, the decision on the choice of the kind of framework as well as the programming language to use is delicate. As seems the case with most technologies, developers are left with a dilemma, wondering which of the many options would make the most sense. In this…

How to Use White Space in Web Design to Improve Readability

Introduction This is one of the most neglected areas in website designing since people do like the graphic designing part only but remember white space also possesses a very important role to play in the design domain. And yet, it’s one of the main signs that your website will not only look gorgeous but will…

Simple jQuery FAQs

In this post we will learn how to make simple and clean frequently asked questions section using jQuery. Please add this jQuery anywhere before closing tag on your web page. jQuery: (function($) { var allFaqs = $(‘.piefaqs > dd’).hide(); $(‘.piefaqs > dt > a’).click(function() { $(this).parent().next().toggle(); return false; }); })(jQuery); HTML: Nice Question 1 Sed…

Building a Community Around Your Online Tutorials

Introduction: The following are some of the questions that one may ask when developing a community: If one is to consider that MOOCs for tutorials are about creating communities, then it is all the more than a plus, but a strong advantage. In their minds, learners’ experience go beyond one who only receives information, but…

The Psychology of Learning: How to Design Tutorials that Stick

Introduction In fact, creating well-executed tutorials is not merely a matter of passing on information; it requires an understanding of how the brain learns. That’s why incorporating learning psychology into your tutorials lets you create not only accurate but also fun and viral. But why is learning psychology of concern? It assists you establish your…

A Beginner’s Guide to Encryption and Data Protection

Introduction With the rise of technology in our lives today privacy of personal and sensitive information is of paramount importance. Today’s threat landscape is becoming really complex and that is why it is critical to learn about encryption and data protection. In this guide, you’ll learn what encryption and data protection is and the methods…

Exploring the Differences Between Live and Pre-Recorded Tutorials

Today, learning has become more technical, diverse and dynamic, tutorials are as common as air while in the processing of acquiring knowledge and skills. This of course brings up the question that is often asked but rarely answered as the plethora of options can be overwhelming; which tutorial format is best? In this paper, it…

How to Teach Kids Coding Using Scratch

Are you concerning about your children the way to get them interested in coding?. As a programming language for kids, Scratch is one of the best out there because it is visually based. It is entertaining, engaging and an ideal resource through which children can develop important skills. And that’s it for now, let me…

Understanding AWS and Azure: A Comparative Guide

Introduction Cloud computing has become the ultimate solution in today’s digital world especially in handling various business needs ranging from computing storage to application hosting. Some of the large companies that operate within this market include Amazon AWS as well as Microsoft Azure. Both platforms are vast offering array of services but the fact is…

How to Create a Tutorial Series That Keeps Users Coming Back

Have you ever wondered why when learning from a tutorial you feel like you are on a rollercoaster ride one moment you are feeling like excited the next moment confused? Oh well, creating a content that interest users and keeping them hooked for a series of tutorial videos isn’t just about writing good content, it…

Best Practices for Writing Clean Code

In concerns to the coding, the term such as “Clean code” does not just refer to a trend but rather the guideline that every programmer should live by. At this point, you may be wondering, ‘Okay, clean code then, just what on earth does this mean?’ Alright, it means writing code that is clearly written,…

Creating a Landing Page Template in Genesis

Today we will learn how to create a landing page template in Genesis framework. In my example I will remove the headers, navigation and sidebars.

Debugging 101: Tips for Finding and Fixing Errors in Code

Debugging is another probably the most important process that every programmer has to know. If you’re a software developer or a programmer at any level, it is as certain as night following day that you are going to stumble across errors. But fear not! Debugging doesn’t have to be complicated or completely overwhelming. Now, in…

The Role of Engagement Metrics in Tutorial Development

Developing a tutorial is one thing and encouraging people to work through it is quite another. This is why engagement metrics come into play! Knowledge of how users use your tutorials can be beneficial, and allow the creation of more accessible tutorial content. Okay, let’s explore the kingdom of engagement metrics and find out how…