Osclass forums
Support forums => Themes => Modern => Topic started by: adv2sell on April 30, 2015, 01:45:25 pm
-
Dear All,
I am having a problem with the menu.. :o
Links are showing but None of them directing/pointing to the right section.
Would appreciate it if you an expert advise me how to solve this.
Also home image on the menu does not show on every page....
Thanks... ::)
-
my error is : $ is not defined
maybe this is too easy to fix...but :-\
How to define
-
Hi,
$ is not defined
"Is not defined" where exactly? You need to write here all the info the log provides about that error. ???
Regards
-
Hi Teseo...
I have just installed another jquery menu..(previous jquery menu was not working at all)
I have managed to place it into the header.php
but home image on the menu somehow does not want to show itself ???
example:
http://adv2sell.com/for-sale/for-babies-infants/happy-toddler-beds_i33 (http://adv2sell.com/for-sale/for-babies-infants/happy-toddler-beds_i33)
Regards...
-
Error: ReferenceError: jQuery is not defined
Archivo de origen: http://adv2sell.com/oc-content/plugins/jquery_menu/jquery_menu.js (http://adv2sell.com/oc-content/plugins/jquery_menu/jquery_menu.js)
jQuery Menu script is being loaded and run before mother library jQuery itself. Is this menu an Osclass plugin of you find it somewhere else? ???
Regards
-
Teseo
so it is a loading issue? jquery.js before my script tag?? so which file must I edit? :o
I found this menu here:
http://forums.osclass.org/plugins/new-menu-design-osclass/ (http://forums.osclass.org/plugins/new-menu-design-osclass/)
::)
Thank you
-
Open jquery_menu/index.php, find:
echo '<link href="'.osc_base_url().'oc-content/plugins/jquery_menu/jquery_menu.css" rel="stylesheet" type="text/css" />';
echo '<script type="text/javascript" src="'.osc_base_url().'oc-content/plugins/jquery_menu/jquery_menu.js"></script>';
replace with:
// echo '<link href="'.osc_base_url().'oc-content/plugins/jquery_menu/jquery_menu.css" rel="stylesheet" type="text/css" />';
// echo '<script type="text/javascript" src="'.osc_base_url().'oc-content/plugins/jquery_menu/jquery_menu.js"></script>';
osc_enqueue_style('jquery_menu', osc_base_url() . 'oc-content/plugins/jquery_menu/jquery_menu.css');
osc_register_script('jquery_menu', osc_base_url() . 'oc-content/plugins/jquery_menu/jquery_menu.js', 'jquery');
osc_enqueue_script('jquery_menu');
This will use the standard enqueue system to make sure jquery.min.js is loaded before any other scripts depending on it.
Regards
-
Hi Teseo
Thank you very much for your help. will edit the php.
I have no problem with the menu..
why home image on the menu is not loading..
You can see the image attached.
Regards
-
Regarding the image issue, it's a bug, in index.php replace this line:
echo '<ul class="topnav"><li><a id="accueil2" href="'.osc_base_url().'"><img src="oc-content/plugins/jquery_menu/accueil.png" /></a></li>';
with:
echo '<ul class="topnav"><li><a id="accueil2" href="'.osc_base_url().'"><img src="'.osc_base_url().'oc-content/plugins/jquery_menu/accueil.png" /></a></li>';
Regards
-
Teseo
Thank you so much for your time...
You are Fantastic!
it is solved.... :)
Regards
-
You're welcome. :D Would you mind to change the title of this thread to "[SOLVED]jQuery Menu Problem"? Thanks.