• 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

Removing height animation in submenu

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 › StudioPress Themes › Magazine Pro › Removing height animation in submenu

This topic is: not resolved

Tagged: Animation, magazine, submenu

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 10, 2021 at 2:16 pm #503403
    RachelGibbons
    Participant

    I am trying to stop the submenu doing a height animation when you hover over the menu, I want it to just appear. This is because it is 3 columns wide, and so as the submenu appears from the top, the submenu items appear to flicker as they move position to flow into the space. I have made it work the first time in css, but after that it goes back to the animation.

    I think I need to change:
    function _superfishToggle( buttons ) {
    in responsive-menu.js and change the height here from show to hide:
    'animation': {'opacity': 'show', 'height': 'show'},
    Is that right?

    Changes I make aren't changing the website though. Changing the version number isn't changing it. Clearing the browser cache isn't doing it. I added a comment to console.log and that doesn't show up either.
    I found a suggestion on stackoverflow to do this:
    wp_enqueue_script(
    genesis_get_theme_handle() . '-responsive-menu',
    get_stylesheet_directory_uri() . '/js/responsive-menus' . $suffix . '.js',
    [ 'jquery' ],
    date("h:i:s"), //date instead of version number
    true
    );
    But that didn't change anything either.
    Please could you help? Thanks

    http://www.penistoneleisurecentre.org.uk
    March 10, 2021 at 5:09 pm #503404
    Anita
    Keymaster

    You can disable Superfish - https://my.studiopress.com/documentation/snippets/scripts/disable-superfish-script/.


    Love coffee, chocolate and my Bella!

    March 11, 2021 at 3:50 am #503413
    RachelGibbons
    Participant

    Ok thanks Anita,

    I thought superfish helped with accessibility though? I was hoping to keep most of superfish and only change the height animation. How would I do that?

    March 11, 2021 at 8:31 am #503419
    RachelGibbons
    Participant

    It's ok, I found theme-supports.php and removed 'drop-down-menu' from here:

    'genesis-accessibility' => [
    'drop-down-menu',
    'headings',
    'search-form',
    'skip-links',
    ],

    That seems to work, and hopefully leaves most of the accessibility in place?
    Thanks

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

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