Can responsive nav menu be collapse instead of dropdown?

General questions pertaining to how certain issues can be resolved. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.

1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"
andersonmultimedia
Posts: 111
Joined: 05 Sep 2011, 20:10
Location: Pennsylvania, USA

Re: Can responsive nav menu be collapse instead of dropdown?

Post by andersonmultimedia » 02 Jul 2014, 12:12

Thanks. I just took all javascript scripts and script urls out of Suffusion back-end custom includes, and also deactivated all plugins except Suffusion Collapse Menu. The page images now scale proportionately, but the collapse nav still isn't showing up. Would you be able to take another peek, please?

andersonmultimedia
Posts: 111
Joined: 05 Sep 2011, 20:10
Location: Pennsylvania, USA

Re: Can responsive nav menu be collapse instead of dropdown?

Post by andersonmultimedia » 02 Jul 2014, 12:18

Nevermind, I see it now. My top-nav div is not collapsing, and there is some content scrolled off to the right - where the collapsed icon sits. Now I just have to find the culprit. Thanks for your time as usual!

andersonmultimedia
Posts: 111
Joined: 05 Sep 2011, 20:10
Location: Pennsylvania, USA

Re: Can responsive nav menu be collapse instead of dropdown?

Post by andersonmultimedia » 02 Jul 2014, 12:59

It was http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js screwing things up. But my scroller won't work without it. :(

andersonmultimedia
Posts: 111
Joined: 05 Sep 2011, 20:10
Location: Pennsylvania, USA

Re: Can responsive nav menu be collapse instead of dropdown?

Post by andersonmultimedia » 02 Jul 2014, 14:01

Any idea how I could resolve the conflict? If I turn on your plugin, my scroller stops scrolling and collapse nav doesn't work. I can get your plugin to work by removing the url to http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js but I'd like to avoid rebuilding my scroller. I'm hoping there's a way to get jquery/1.7.2/jquery.min.js to play nice with suffusion-collapse-menu

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: Can responsive nav menu be collapse instead of dropdown?

Post by drake » 02 Jul 2014, 19:22

Sorry, here is nothing to do from my part... You cannot load jQuery library twice as you will break all js from your site. Once jQuery 1.11.0 is loaded by WordPress and is used by Suffusion, my plugin and probably all other plugins which properly enqueue their scripts... then you try to come with an outdated version of jQuery and hang our scripts in the air...

In fact, your script for scrolling is included wrong, it not use noConflict mode. By adding only a link to the other jQuery, you just break all javascripts from your site, making jQuery available only for your script. More than that, your script use live function which was deprecated starting with jQuery 1.7 and was completely removed since jQuery 1.9., so, your script will not works with the current version of jQuery.

Read http://matthewruddy.com/using-jquery-with-wordpress/ for simple instructions about using jQuery in WordPress (and Codex for wp_enqueue_scripts, as for register and deregister scripts). Also on my site are a lot of tutorials for including jQuery plugins (as your scroller) in WordPress/Suffusion.

Probably the best idea is to correct your script to use on instead of live and add the script in noConflict mode and then probably will work directly with jQuery bundled in WordPress without including any link to other jQuery library and without conflicting with other scripts.

andersonmultimedia
Posts: 111
Joined: 05 Sep 2011, 20:10
Location: Pennsylvania, USA

Re: Can responsive nav menu be collapse instead of dropdown?

Post by andersonmultimedia » 02 Jul 2014, 19:49

Probably the best idea is to correct your script to use on instead of live and add the script in noConflict mode and then probably will work directly with jQuery bundled in WordPress without including any link to other jQuery library and without conflicting with other scripts.
Thanks Drake. I am in over my head here - and do not know how to do what you suggest. I figured the issue might lie in outdated version of jQuery and being called via url. I'll try and see what I can figure out. Thank you my friend.

Locked