• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Making Genesis Sample Menu Full Width

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Making Genesis Sample Menu Full Width

This topic is: resolved
  • This topic has 11 replies, 2 voices, and was last updated 9 years, 9 months ago by brock.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • June 7, 2016 at 7:36 pm #187131
    tyler1986
    Member

    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.com
    June 7, 2016 at 8:15 pm #187133
    brock
    Member

    For 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 #187135
    tyler1986
    Member

    HOLY 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 #187138
    brock
    Member

    Look 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 #187140
    tyler1986
    Member

    I 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 #187141
    tyler1986
    Member

    How 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 #187142
    tyler1986
    Member

    I 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 #187143
    tyler1986
    Member

    I am using the Genesis sample theme

    June 7, 2016 at 9:30 pm #187144
    brock
    Member

    Put 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 #187145
    brock
    Member

    Oops, 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 #187146
    tyler1986
    Member

    I 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 #187147
    brock
    Member

    Haha! 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.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble