• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

How to remove the blind affect on submenu

Home › Community Forums › Guru Theme Support › How to remove the blind affect on submenu

Tagged: parallax, submenu

  • This topic has 3 replies, 2 voices, and was last updated 4 years, 11 months ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 8, 2017 at 6:58 pm #21720
    Pete
    Customer

    Hi Wes. I have two questions that I was hoping you could answer.

    1. How do you remove the blind effect on the sub-menus and have the whole sub-menu box show up instantly instead?

    2. Is there an easy way to remove the parallax effect on the homepage?

    Thanks for a great theme!

    July 8, 2017 at 10:24 pm #21729
    Wes
    Moderator

    I’m not sure what you mean by “blind” effect? Are you referring to how it opens up when you hover? If so, I think that has something to do with the superfish/javascript that is used in the Genesis Framework. It shows up that way by default. Example – https://demo.studiopress.com/genesis-sample/

    Try adding this code in your functions file –

    add_action( 'wp_enqueue_scripts', 'sp_disable_superfish' );
    function sp_disable_superfish() {
        wp_deregister_script( 'superfish' );
        wp_deregister_script( 'superfish-args' );
    }

    To remove the Parallax effects, take a look in your front-page.php file and Comment Out or Remove this code –

    //* Enqueue parallax script
    add_action( 'wp_enqueue_scripts', 'guru_enqueue_parallax_script' );
    function guru_enqueue_parallax_script() {
    
      if ( ! wp_is_mobile() ) {
    
        wp_enqueue_script( 'parallax-script', get_bloginfo( 'stylesheet_directory' ) . '/js/parallax.js', array( 'jquery' ), '1.0.0' );
    
      }
    
    }

    The background images will still be in a fixed position, but the Parallax effect will be disabled. If you want to ALSO remove the fixed background images then you’ll need to look at line 1456 or search for this –

    .front-page-1,
    .front-page-3,
    .front-page-5,
    .front-page-7,
    .front-page-9,
    .front-page-11 {
    	background-attachment: fixed;
    	background-position: 50% 0;
    	background-repeat: no-repeat;
    	-webkit-background-size: cover;
    	-moz-background-size:    cover;
    	background-size:         cover;
    }
    

    …then comment out or remove this part – background-attachment: fixed;

    July 10, 2017 at 1:15 pm #21738
    Pete
    Customer

    Thanks for the support Wes!

    July 10, 2017 at 4:20 pm #21739
    Wes
    Moderator

    You’re Welcome!

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

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework