- This topic has 5 replies, 3 voices, and was last updated 6 years ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Is it possible to remove the header right widget area add add it again to change the priority.
Something like (this did not work though):
remove_action( 'genesis_header', 'genesis_header_right' );
add_action( 'genesis_header', 'genesis_header_right', 10 );
Nik, what's the bigger picture here? What are you trying to do? The default priority (load order) for any WordPress action is 10. You are removing the header-right and adding it back at the same priority.
I have moved the Primary Navigation into the header and want to position it between the Site Title and Header Right Area. Changing the Priority on the Primary Navigation action moves it either before the Site Title or After the Header Right Widget Area, but not between the two.
So, I was thinking to add a priority the the Primary Nav and the Header Right area. But it is still not working, even with a higher priority on the Header Right Widget Area.
This is what I want to achieve: https://cl.ly/0C0L1s3U2W1E. Does that make sense?
This sounds like an ideal opportunity for you to learn CSS Grid Layout. It will be a lot easier than writing all the code required to move things around as you want. Take a look at this tutorial, if it doesn't help, I'll do what I can to help you with the code. https://victorfont.com/customize-the-genesis-header-with-css-grid-layout/
Yes, I am using CSS Grid, just diving into it actually. It is pretty freakin' awesome. And objects can be positioned 'anywhere'. That will save moving things around in code. BTW - excellent article of your on CSS Grid. I have also been working through https://css-tricks.com/snippets/css/complete-guide-grid/. Thanks again for your suggestions.
So how do you implement CSS Grid within the editor area of WordPress?
The tutorial only covers the header area.
© 2023 WPEngine, Inc.