Remove Navigation Menu Slide-To-The-Right On Rollover

Support Area Forums Foxy Remove Navigation Menu Slide-To-The-Right On Rollover

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #6280
    Nicholas Minnich
    Participant

    How does on get rid off this effect? I want to make my navigation items stay in the same place. Thanks!

    #6287
    Bill Robbins
    Moderator

    Nicholas,

    You can remove the sliding effect. Here’s how to do that:

    1. Go to the appearance section of your WordPress control panel and select edit to open up the theme editor.
    2. From the list of files on your right, choose custom-js.php and look for this spot:
      
      
      // navigation animation
      	var timer = 150; //time in milliseconds
            
      	$('aside.sidebar .menu li a').hover(function() {
      		$(this).animate({ marginLeft: '25px' }, timer);
            }, 
          function() {
              $(this).animate({ marginLeft: '0px' }, timer);          
          });
      
    3. Delete that and save your changes.

    That should remove the sliding effect from your navigation. If you have any trouble, let me know.

    Thank you for your business,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Remove Navigation Menu Slide-To-The-Right On Rollover’ is closed to new replies.