I have only gotten this to work on a Wordpress site once, and I thought that I could do it again. Man, I was crazy for thinking that copying and pasting would make it work!
Here is the js:
$(function(){
var $el, leftPos, newWidth, $mainNav = $("#page-nav");
/* EXAMPLE ONE */ $mainNav.append("<li id='magic-line'></li>");
.current_page_item a { color: white !important; background: #f8ba4f; }
I have made the line red so that it can be seen easily. The thing moves and changes sizes, but it does not start in the correct position. Any help here would be great!
I have only gotten this to work on a Wordpress site once, and I thought that I could do it again. Man, I was crazy for thinking that copying and pasting would make it work!
Here is the js:
Here is the styling of the menu:
I have made the line red so that it can be seen easily. The thing moves and changes sizes, but it does not start in the correct position. Any help here would be great!