Community Forums › Forums › Archived Forums › General Discussion › Making Genesis Sample Menu Full Width
- This topic has 11 replies, 2 voices, and was last updated 8 years, 7 months ago by brock.
-
AuthorPosts
-
June 7, 2016 at 7:36 pm #187131tyler1986Member
I am trying to figure out how to make my Primary Navigation go full width. I would love the person who helps FOREVER!. Also, I am using uber menu and on my phone the uber menu becomes a sub menu of the genesis primary navigation. I need help making uber the primary nav on mobile as well instead of a drop down of the Genesis Menu? Please help a new user. I would sooooooo appreciate it!
http://hotkeyed.comJune 7, 2016 at 8:15 pm #187133brockMemberFor making the menu full width, add this to your functions.php file
// Removes the structural wrap from primary navigation add_theme_support( 'genesis-structural-wraps', array( 'header', 'menu-secondary', 'footer-widgets', 'footer' ) );
I'm not too sure about your mobile menu and I'm not familiar with uber menus.
June 7, 2016 at 8:24 pm #187135tyler1986MemberHOLY SHIT! I copy and pasted it in there and this is the error I got. I deleted it and now I cant get to my site!
Parse error: syntax error, unexpected '}' in /home4/tyler86/public_html/wp-content/themes/genesis-sample/functions.php on line 125
June 7, 2016 at 8:52 pm #187138brockMemberLook on line 125. You have a simple syntax error which is an extra or misplaced closing curly-brace. This might be due to where you pasted the code above (which has no closing curly-brace in it). Also, I should've mentioned to make sure your theme doesn't already have a similar line (setting the structural wraps) anywhere else in functions.php. If it does, you can just make the change on the one already there without repeating it twice.
June 7, 2016 at 9:02 pm #187140tyler1986MemberI cant get to my functions.php file. I am in my C Panel on Host Gator and all I can see is customize.php, output.php and theme-defaults.php. But when I open them up I cant see the code I copy and pasted in. Also, how do I make the changes if I cant do it in WordPress. I am seriously so sad....
June 7, 2016 at 9:06 pm #187141tyler1986MemberHow do I get back to my functions.php file if I dont have access to my wp-admin? I can't log in to my WordPress admin. 🙁
June 7, 2016 at 9:20 pm #187142tyler1986MemberI Figured it out! I edited it in my CPanel. Thank you for your help. So the code you sent me is there an error in it? I pasted after my last curly brace at the bottom of the PHP file and closed it with a curly brace. Is that what broke it?
June 7, 2016 at 9:24 pm #187143tyler1986MemberI am using the Genesis sample theme
June 7, 2016 at 9:30 pm #187144brockMemberPut your mind at ease. These types of errors occur regularly when editing a function.php file and aren't cause for alarm.
You should have FTP access. You can get to your files via FTP with FileZilla or a similar free program. You just need to get your FTP credentials. This is a preferable way of editing your files in the future. You must've been making your edits right there in the admin area - you now see why that isn't optimal.
Once you get the functions file opened again, the curly-brace will be easy to spot and fix as you have the line number and know what to look for. Sometimes php errors will be one line less than specified in the error message.
June 7, 2016 at 9:31 pm #187145brockMemberOops, we posted at the same time. Yeah, you added an extra curly brace and that broke it. Glad you're back in!
June 7, 2016 at 9:34 pm #187146tyler1986MemberI LOVE YOU!!!!!!!!! I JUST GOT IT WORKING! CAN YOU EXPLAIN WHAT THAT CODE DID!! YOU ARE MY GOD DAMN HERO!
June 7, 2016 at 9:54 pm #187147brockMemberHaha! Genesis has a wrapper class, .wrap. This add_theme_support function is telling Genesis to only add the .wrap class to the specified areas. It excludes the primary navigation, so that its inner elements aren't nested inside of that wrapper class.
If you look in your style.css file, you can find the .wrap and see what width it has. Everything that gets that class is being hemmed in by whatever that width is set to.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.