• 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

[Help]Toggle menu not working as intented

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 › [Help]Toggle menu not working as intented

This topic is: resolved

Tagged: genesis-nav-menu

  • This topic has 2 replies, 1 voice, and was last updated 2 years, 11 months ago by harryagamez.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 22, 2020 at 5:08 pm #496898
    harryagamez
    Participant

    Hello everybody. It has been a long time since I visit these forums.

    I am working on this site (puppybellies.com). I am working on the genesis sample theme but I am having this issue with the toggle menu (responsive).

    When I open the toggle menu, it doesn't "push down" the content of the site. Instead, the menu displays over the content of the site and it makes it really hard to read.

    What am I doing wrong?

    This is the code I am using:

    /* Responsive Menu
    --------------------------------------------- */
    
    .menu .menu-item:focus {
    	position: static;
    }
    
    .menu .menu-item > a:focus + ul.sub-menu,
    .menu .menu-item.sfHover > ul.sub-menu {
    	left: auto;
    	opacity: 1;
    }
    
    .genesis-responsive-menu {
    	display: none;
    	position: relative;
    }
    
    .genesis-responsive-menu .genesis-nav-menu .menu-item:hover > .sub-menu {
    	display: none;
    }
    
    .menu-toggle,
    .sub-menu-toggle {
    	background-color: transparent;
    	border-width: 0;
    	color: #333;
    	display: block;
    	margin: 0 auto;
    	overflow: hidden;
    	text-align: center;
    	visibility: visible;	
    }
    
    .menu-toggle:focus,
    .menu-toggle:hover,
    .sub-menu-toggle:focus,
    .sub-menu-toggle:hover {
    	background-color: transparent;
    	border-width: 0;
    	color: #0073e5;
    }
    
    .menu-toggle {
    	float: right;
    	line-height: 20px;
    	margin-bottom: 10px;
    	margin-top: 10px;
    	padding: 15px 0;
    	position: absolute;
    	z-index: 1000;
    }
    
    .menu-toggle.activated::before {
    	content: "\f335";
    }
    
    .site-header .menu-toggle::before {
    	float: left;
    	margin-right: 5px;
    	position: relative;
    	text-rendering: auto;
    	top: 1px;
    }
    
    .sub-menu-toggle {
    	float: right;
    	padding: 9px 10px;
    	position: relative;
    	right: 0;
    	top: 0;
    	z-index: 100;
    }
    
    .sub-menu .sub-menu-toggle {
    	padding: 12px 10px;
    }
    
    .sub-menu-toggle::before {
    	display: inline-block;
    	text-rendering: auto;
    	transform: rotate(0);
    	transition: transform 0.25s ease-in-out;
    }
    
    .sub-menu-toggle.activated::before {
    	transform: rotate(180deg);
    }

    Here is an image of the problem.

    https://puppybellies.com/
    February 22, 2020 at 5:18 pm #496899
    harryagamez
    Participant

    menu problem

    February 22, 2020 at 6:08 pm #496900
    harryagamez
    Participant

    Okay. I found the problem. When I was tweaking the site-header I set a height of 70 and that was the cause. I fixed changing height for min-height.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘[Help]Toggle menu not working as intented’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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