Sidebar Jumping
-
As my page loads, the sidebar starts out on the right, and about 5 to 10 seconds later it jumps over to the left, where it is supposed to be. This is very annoying, and a few of my visitors have complained about it. How can I make the sidebar load on the left only?
Just add dot com to my username to go to my site and watch the sidebar.
Why am I still using 2.7? Because my host wants to charge me to upgrade my WP, and I cannot yet afford that.
Thanks
Scott
-
Hi Scott,
I can tell you it’s to do with the following javascript.
t = jQuery('#sidebar1').clone(true); jQuery('#sidebar1').remove(); jQuery('td#content').before(t);The above code is, after the page loads, it clones the sidebar, deletes it, and then places the clone before the content. That is why the menu looks like it jumps from one side to the other, as that is what the code above is basically doing.
You could change your theme place the sidebar before the content. As I’m not sure how your theme is constructed, I would not be able to guess where the code for this is. Usually it would be in sidebar.php or footer.php. And I would guess you could move this to header.php, right before the opening td#content. Again, it’s guesswork. If you know someone a bit more familiar with web design, get them to do this for you.
After you do the above, you would need to remove the 3 lines of javascript I added above. They are most likely in your footer.php somewhere.
Hope this helps!
Har
Har,
I found the javascript you referred to in my footer.php file!
I then looked at my index.php file, and it consists almost entirely of code dealing with the sidebar. I would copy and paste it here but it is very long.
In fact, I found code mentioning the sidebar in lots of the theme files, and I am certain that I would screw everything up if I tried moving this stuff around.
You are right, I need help from a pro like yourself. Here is my address: 1001 just kidding St. AlabamaThanks so much for your help, at least now I know where the problem originates from.
Scott
No worries.
I’ll pass my bill on for the help so far to that address. 🙂 Shall I address it to Scott Bigfishingshop?
Yeah, I allowed the sidebar could be in a few locations. Hope you can get someone to have a look at it, you could probably get them to upgrade WordPress as well. Though it may break your theme, so be careful upgrading as well as doing so may result in you having to get someone to significantly redevelop your theme, costing you even more money.
All the best,
Har
The topic ‘Sidebar Jumping’ is closed to new replies.