Removing the Hamburger

Homepage Community Forums SquareOne Theme Support Removing the Hamburger

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11978
    onlinesimple
    Customer

      Hi Wes!

      How do I (can I?) remove the hamburger icon from the mobile version of the SquareOne Theme? My client prefers the ‘regular’ mobile-responsive menu.

      Thanks, Allegra

      #11979
      Wes
      Moderator

        Look for this in your functions file –

        //* Enqueue Scripts/Styles
        add_action( 'wp_enqueue_scripts', 'squareone_enqueue_scripts_styles' );
        function squareone_enqueue_scripts_styles() {
        
        	wp_enqueue_script( 'squareone-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
        	wp_enqueue_style( 'dashicons' );
        	wp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,500,600', array(), PARENT_THEME_VERSION );
        	wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css', array(), '4.0.3' );
        	
        }

        then remove the entire responsive-menu.js part –

        wp_enqueue_script( 'squareone-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );

        That should unlink it.

        #11980
        onlinesimple
        Customer

          Brill! I will try that, thank you!

          A

          #11993
          Eric
          Customer

            Just let me know if it works. I’m trying to see if there are any issues with removing that link and leaving the file active.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

            #11994
            Wes
            Moderator

              @Eric It should work fine, as the file itself won’t load if there isn’t anything linking to it.

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