How to remove the blind affect on submenu

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

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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!

      #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;

        #21738
        Pete
        Customer

          Thanks for the support Wes!

          #21739
          Wes
          Moderator

            You’re Welcome!

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