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
Get free Consultation on Development
Related Posts
Navigating the Cloud Migration Process: A Step-by-Step Guide to Successful Cloud Adoption
Thus, in the modern context of day by day expanding usage of technological means, more and more companies are starting to appreciate the benefits that come from the implementation of cloud computing. Cloud solutions choice provides customers with flexibility, scalability, cost optimization, and other peculiarities. But going for the cloud migration is not a simple…
Hire Java Developers in 2023 with These Steps
Despite the many years passing since the creation of Java, it stays relevant in the panorama of the IT industry, and employing powerful Java developers is vital for guaranteeing the effectiveness of your software projects in 2023. Java developers are in high demand, as a result, it is crucial for Companies to develop proper strategies…
Best VS Code Shortcuts and Productivity Hacks for 2023
Introduction There is a constant hurry in the coders’ world, and that means that such a thing as time optimization matters. When seconds are important it means that developers require the tools that would help to address the issues within the shortest time possible. This is where Visual Studio Code (VS Code) makes a difference….
The Psychology of Color in Web Design
It is rather important to understand that color plays critical role in web design as it can give emotion, help make decisions and form user experience. Learning the psychology of the colors that are used in the design will assist the designers create most appropriate web sites for the clients. As a novice in the…
Programming Languages Overview: These Languages Dominated 2022
Introduction Ways of software development are vigorously growing and evolving as well, and programming languages are the pillar of such evolutions. Each year is marked with the emergence and disappearance of various languages that define the tech environment. Like any other year, the year 2022 was not exceptional as there were so many programming languages…
Understanding the Basics of Grid Systems in Web Design
More than just an instrument in website creation, a grid defines the skeletal structure within which all the sites components reside. Understanding of grids is mandatory for professional web design regardless the fact you are dealing with the blog or e-commerce site. Knowing the importance of grids is the first step Though this article you…
DevSecOps: What Companies Need to Know
When it comes to development in today’s high-velocity environment, any application or system must be protected. This is where DevSecOps, which is a combination of Development, Security, and Operations initiatives, is used. Failure to take DevSecOps seriously is all the more unwise in today’s world, as it is a critical path that organizations have to…
8 Front-End Tools for Web Development
More so, designing a website that is colorful and easy to navigate is mandatory in the current competitive technological world. Some of the goals that front-end development tools should meet include the following; front-end development tools effectively help in achieving this goal through enhancing the ease of designing and developing great user interface. Here is…
We don’t just build Websites, we grow your business
Business growth through websites In today’s fast-paced digital landscape, the age-old saying “If you build it, they will come” no longer holds true. In a world driven by technology, businesses need more than just a static online presence – they need dynamic, engaging, and strategic websites that not only attract visitors but also propel business…
Top 10 Web Development Frameworks for 2024
Picking the right web development framework can sometimes feel like picking a single tool from a forest of tools. This makes me always wonder which choice is the best for one particular project that one has been assigned to work on. Nowadays, however, the situation is quite different and some of the frameworks are starting…
What is Recruitment ROI and How to Calculate It?
Staffing is the lifeblood of an organization since the quality of talent recruited determines the organization’s performance. However, the important question that always comes up is: how does one determine the success of recruitment? This is where concepts such as Recruitment ROI (Return on Investment) can be applied. In the article, we will explore more…
The 20 Best Enterprise Business Software
What the managers need in the world spinning faster than a carousel is the proper software. Complex software for enterprise applying to corporate-scale organizations also has the ability to facilitate or revolutionalize key processes, employees’ cooperation, and overall performance. Thus, in this article, we’ll take a closer look at the world of enterprise software solutions…
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…
How to Analyze Data Using Python and R
Introduction When it comes to data analytics both Python and R are two major programming languages that are frequently used. Both possess characteristics that makes them enticing to different group of the data science fraternity. For a professional data scientist or someone who is new to this field, grasp the concept of how to analyze…
How to Stay Motivated While Creating Your Tutorials
This paper focuses on motivation in creative work and how it can be understood. Producing tutorials itself can be quite rewarding but at times maintaining that motivation is quite tricky- let’s be real here. Therefore, what motivates one to be creative and maintain that motivation comprehensible and tangible? What Drives Us to Create? Most of…
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,…
Converting genesis Child theme to HTML5
As you know, Genesis 2.0 has been released that have the support of HTML5. Not every and previously released themes are HTML5 ready so we will learn how to convert them from xHTML markup to HTML5. There are some Hooks, and Classes that needs to be changed. Hooks genesis_post_content will change to genesis_entry_content genesis_after_post_content will…
Master Watercolor Painting Techniques with These Easy Steps
Are you willing to start your journey with watercolor painting? Watercolor can be one of the most satisfying mediums due to a range of beautiful washes and rich colours. From a novice wishing to start the journey to one looking to optimize their performance, these steps will help you get there. Time for you to…
Master Public Speaking with These 10 Easy Tutorials
It is one of the most precious skills that one should equip himself or herself depending on the type of career, social events like giving a speech during wedding ,etc. But let’s face reality—it is also one of the creepiest. Don’t worry! With these 10 easy tutorials, you’ll go from shaking to shining on stage….
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…
Creating Custom Widgets in WordPress: Tips and Tricks
Introduction If there is anything that can revolutionize the personalization of your WordPress site, creating your widgets is an excellent place to start! So now that we know that custom widgets are WiFi enabled widgets that can be downloaded to a mobile device, what do they mean to us? Well, you might consider them as…
How to Write Compelling Descriptions for Your Tutorials
In a sea of information available on the Internet, it might be difficult to make an effective call to attention—especially if one has to produce a tutorial. An interest grabber is an essential tool for any tutorial as it is the basis for attracting as many potential learners as possible into your course who are…
Unicode Characters Issues
I recently encountered a weird issue when my webservice stopped working after moving to a new Server, Everything was configured properly and I scratch my head around but no helps, google the issue but no success, finally my debugging ended up figure out the issue it was Default Files Encoding that was not set to…
How to Use HTML5 and CSS3 to Build Responsive Websites
Introduction Today, creating ‘responsive’ websites or websites that can be accessed from any device is not just a ‘must-do,’ but it is imperative! Whether you are building a blog or an online shop, HTML5 and CSS3 skills are crucial if you are designing a website today. But how does these two powerful tools assist us…























