Hi jennifer – ok, here’s the code I used. I put this in functions.php b/c I wanted these changes to be site wide:
//* Reposition the primary navigation menu
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
add_action (‘genesis_before_header’, ‘genesis_do_nav’ );
//* Reposition the secondary navigation menu
remove_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );
add_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
I think in my case the subnav actually appeared ‘above’ the main nav, so I had to do some re-thinking to make the terms ‘nav’ and ‘subnav’ make sense with what I did in the menus section of WordPress. (I think it might be backwards in Epik, not sure.)
In the add_action section, you can replace ‘genesis_(before/after)_header’ with whatever hook you like, and you can look inside Genesis documentation for details on all the different ‘hook locales’ that appear on your theme. There’s even a plugin called ‘Genesis Visual Hook Guide’ to help out. Careful with the hook guide, tho’, b/c it doesn’t give you a fully-resolved class or id. You’ll have to dig deeper with firebug to get all the goodness. Don’t rely on the Hook Guide alone when you edit your CSS.
As you already know (this is more for those who are new-ish), it doesn’t matter where you put these instructions; you can stick them anywhere within functions.php, as long as you don’t stick them in the middle of some other code (of course).
What I do is just start a ‘Don’s customizations’ section at the bottom of the functions.php file, where I literally type:
//* CUSTOMIZATIONS START HERE
And then I add whatever elements I want; that way it’s easier to see what changes I made, they are all in the same place, blah blah.
Lemme know if that works for you!
-DonO
Huh, curious. Do you want to share your site’s link so i can see what you’re talking about in Chrome?
-D
Hi MM — it would be incredibly generous of you to share what adjustments you made in CSS, and anywhere else. Awesome and thank you!
-D
Me neither … one of those things I haven’t gotten around to, yet lol!
-D
Hi Solitude … good job for you on finding a great solution to the problem. Here is what I recommend you try:
First back up your website, making sure to pay extra special attention to backing up any of the files you are about to edit.
Open your site in Chrome and take a screencap.
Then, using a text editor like TextWrangler, or whatever you’re using, open functions.php in the Epik folder and add the patch you discovered. Make sure you know where you put this and even write a little note to yourself in a comment to remind you that you made this change.
Save functions.php back to your server and give your site a look-see in Chrome. If you kept the previous window open, open another window and compare them side by side and see if you see an improvement.
You don’t have to worry about adding the <!–formatted–> comments into your functions.php … they are html comments and afaik are not needed.
Basically what this code is doing is adding a function to the list of things that run at a point called ‘wp_enqueue_scripts,’ which is when a bunch of scripts get run in WordPress. The function is defined in the next lines, and basically tells Genesis to use Google fonts.
Hope that helps out. If it doesn’t work, then put back your saved functions.php file and everything’s back the way it was.
-DonO
Hey Doug! Sorry to hear your dropdowns stopped dropping down.
Try deactivating plugins and see if one of them is interfering with your menus.
And if that doesn’t work, when you come back please be sure to share what has been done recently to your site – something new been implemented? did you upgrade Epik to 1.3? Some other plugin or code that’s using jquery in some way? Did anybody turn anything off on your site?
Thatll really help narrow things down.
-DonO
In case anyone else reads thru this, here’s what I found:
1. Adjust width and height in functions.php at lines 33-35, genesis-custom-header
2. Adjust min-height in style.css at line 690 for class .header-image and id #title-area
Bam! Your logo will now fit. Be sure that your logo’s background (even if it’s transparent) is set to 1152 pixels wide*, or the cropping tool inside of Genesis / WordPress will kick on and try to fill up the width with a cropped version of your logo.
*I have not yet tackled the responsive aspect of the header image, so this will break responsive design, I believe.
-DonO
THanks, Eric. Just out of curiosity, do you have any involvement with Cobaltapps?
D
Hi Eric — Thanks! So …. I think I’m figuring this out. The reason why my 600px high logo isn’t showing at full height isn’t because of min-height, I think. Is it because ‘overflow’ is set to ‘hidden’?
That could be very interesting.
Also, why is text-indent sent to such a large negative #. What does this achieve?
Thanks!
DonO
OK great, thanks! Now here’s the next piece of this:
1. I have a logo for the regular site; it’s 600×600 pixels.
2. What parts of the css do I modify so that the whole logo shows up in the header? I’m not worried about responsive, yet, just the regular / main part of the site.
what values (lines numbers in styles.css would be helpful) do I modify in order to change the image height to 600 in the header?
Thanks.
-DonO
Hi Eric, yes it’s here at http://www.coffeeuniversity.org.
-DonO
Sorry, forgot to ask:
* I assume I need to upload proportionately smaller versions of this image, and then reference them in css, in order to maintain responsiveness for tablets and phone screens. Could you walk me thru the x’s and o’s on this a little bit? Specifically, where in css do I control the choice of which image is used for each media width?
Thanks!
Bump.
Thanks, Scoob … turned out I needed to adjust the class itself, and not the h2 tag.
-DonO
Worked perfectly, thanks Eric!
-D
Got it, thanks!
D
Awesome!
Yeah I believe that the conditional is included just to protect the theme from borking somehow. -D
Thanks, Scooby. Good idea.
I’m not sure … are you’re one of the authors of Epik?
I’m specifically interested in finding out if the conditional is a requirement within Genesis+Epik to make something work? If you helped write Epik, you’re the guy who would know.
-DonO
On that same note, should I be writing my styles in a separate file and including them into style.css to prevent an overwrite on update?
DonO
Hi kronos – oh yes, and you make a very good point.
Perhaps I should have phrased my question a little differently.
I’m just about finished with a custom template. But the details of the style.css are confusing.
I’m unclear which section, within section 4 of the CSS, should I be looking at to guide me for the following:
a two-column widget area
a one-column widget area
I could be looking at section 04d, or possibly elements within sections 7 through 10. I don’t understand the purpose of bg-alt within widgets.
To sidestep all this, I was looking for Eric or Wes to simply point me to a specific area within the css, ideally by line reference, so that I can just ‘copy & edit’ the css.
The item that comes closest to this would be a regular blogpost, style for a two-column and style for a one-column widget.
So rather than going into a lot of detail about my question, I ‘jumped ahead’ and just asked the ‘copypaste’ version.
So that’s the background and purpose … if I should be doing this on my own and not asking in this forum, just let me know.
-DonO
Oh, and it goes without saying, but i’m defining all my styles within Wes’ style.css for Epik.
-D
Hi Eric! Ok I think I understand, so lets make sure …
Your comment says “This can all be done from the home.php file …”
However, since I want to create a separate template, and not mess with home.php, I should copy “add_action( … );” from home to blog_page.php and work from there.
Is that right, or is the ‘home’ page for Epik inside of a larger ‘conditional’ statement, and the part you’re referencing is not for the ‘homepage’ itself, but for a page outside of that condition?
Thanks for your help clarifying these little details!
-DonO
whoops, meant :first-letter, not :first-character. -DonO