Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to expand navigation of wordpress website when the browser size is reduced

I am looking for help in verefly.com. I have developed this website with an online theme and have made the necessary changes .My issue is that the navigation menu when the browser is reduced from its original size , does not expand . It should ideally do that and was performing normally until some days ago .

The normal website looks like this :

enter image description here

The website looks different when the browser is reduced in size :

enter image description here

In the above picture you will see the navigation menu , however the Plus sign is no longer clickable . Neither does it expand . I am not able to understand where i can change it to work again .

I would appreciate any help .*

* I tried to check if the secondary Menu had an issue , but nothing is evident *

like image 834
Nodnin Avatar asked Mar 26 '13 03:03

Nodnin


2 Answers

The problem you're seeing is due to $(document).ready never being fired, so (essentially) none of the code in your custom.js file is being executed.

As pointed out already, this is because the jwplayer instantiation in the middle of your page (on line 399) is failing. jwplayer is expecting you to pass in the ID of a container element, but no element with an ID of mediaplayer_vid_5 exists on the page.

So, you need to either remove this script entirely, or make sure that you are passing in an ID that is actually being used somewhere on the page. Once you've done one of the two, it all works fine.

like image 195
Andrew Avatar answered Oct 22 '22 23:10

Andrew


Mmm.. i see. Try to remove or turn off the script like below. May resolve the problem.

jQuery(document).ready(function(){
       jwplayer("mediaplayer_vid_5").setup({
       "autostart" : "true",
        "controlbar" : "bottom",
        "file" : "http://www.youtube.com/watch?v=pGoCeTMgLE0&feature=youtube_gdata_player",
        "flashplayer" : "http://verefly.com/wp-content/plugins/cool-video-gallery/cvg-player/player.swf", "volume" : "70","width" : "640",
                            "height" : "480",
                            "image" : "http://i.ytimg.com/vi/pGoCeTMgLE0/0.jpg",
                            "mute" : "false",
                            "stretching" : "fill",
                            "skin" : "http://verefly.com/wp-content/plugins/cool-video-gallery/cvg-player/skins/glow-skin/glow.xml"
                        });
                    });

NEW UPDATE : This script is in the article "Vault in the Ville!", Let you check in the post in your wordpress admin, there you may inadvertently insert this javascript code. If you find this code, remove it.

Please use browser view source in this url http://verefly.com/2012/06/06/vault-in-the-ville-2/ to see the javascript code what i mean.

like image 42
Fredy Avatar answered Oct 22 '22 21:10

Fredy