Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript MagicLine breaks when changing permalinks in WordPress?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29389
    nutt318
    Member

    Well I have the MacgicLine (https://css-tricks.com/jquery-magicline-navigation/) setup on a site and it works great. Currently I’m using the default permalinks and recently wanted to change it to a custom. The new permalinks would be ‘/%postname’ and for some reason when I change it to that MagicLine only works on the main front page. Any other pages the MagicLine has disappeared. I’ve tried looking at the .js file and nothing is making any sense to me.

    Any ideas why it would break after changing the permalinks?

    Thanks,
    Jake

    #78202
    nutt318
    Member

    For some reason I’ve looked over the code a 100 times and can’t figure out what is wrong. However Firebug is show this error but I’m not sure what it means.

    Code:
    $mainNav is null
    $mainNav.append(“

  • “); example.js(line 6)

Any ideas why the magic line isnt showing?

#78222
jamygolden
Member

Do you have a live example up?

#77842
nutt318
Member

Here is the site, its not a 100% finished but the Magic Line should be under the menu bar in the top left. Still need to style a few things but here it is.

http://www.ccimotorsport.com/

Also I would like any feedback about things to add/change… any design help would be great.

Thanks,
Jake

#78360
jamygolden
Member

You said that the MagicLine was working on your home page, however it doesn’t seem to be (I checked in Firefox and Chrome).

I’m not exactly sure what the problem is, but there are a few things that it could be:
– I would say the first problem is that you are loading 2 separate version of jQuery
– You are loading up 3 different javascript libraries (jQuery, Prototype and Scriptalicious)
– Your html isn’t validating (Visit http://validator.w3.org/)

These might be the causes, and they might not. But it’s a good idea to fix this up and then check if there is still a problem.

#114596
whatinpsiresu
Member

has anyone figured out how to get this working in wordpress? Seems pretty straightforward. Im having trouble converting the $ to jQuery in a way wordpress likes. Ive tried every example out there. nada. any tips?

Viewing 6 posts - 1 through 6 (of 6 total)