Advertisement:

Author Topic: [SOLVED]Menu Problem  (Read 1418 times)

adv2sell

  • Jr. Member
  • **
  • Posts: 84
[SOLVED]Menu Problem
« 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... ::)
« Last Edit: May 01, 2015, 09:32:04 pm by adv2sell »

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Menu Problem
« Reply #1 on: May 01, 2015, 05:37:34 pm »
my error is : $ is not defined
maybe this is too easy to fix...but   :-\

How to define

 

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Menu Problem
« Reply #2 on: May 01, 2015, 06:39:05 pm »
Hi,

$ is not defined

"Is not defined" where exactly? You need to write here all the info the log provides about that error. ???

Regards

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Menu Problem
« Reply #3 on: May 01, 2015, 07:02:40 pm »
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

Regards...



teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Menu Problem
« Reply #4 on: May 01, 2015, 07:15:41 pm »

Quote
Error: ReferenceError: jQuery is not defined
Archivo de origen: 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

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Menu Problem
« Reply #5 on: May 01, 2015, 07:33:39 pm »
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/

 ::)
Thank you

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Menu Problem
« Reply #6 on: May 01, 2015, 08:40:39 pm »
Open jquery_menu/index.php, find:

Code: [Select]
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:

Code: [Select]
// 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

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Menu Problem
« Reply #7 on: May 01, 2015, 09:08:08 pm »
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


teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Menu Problem
« Reply #8 on: May 01, 2015, 09:20:17 pm »
Regarding the image issue, it's a bug, in index.php replace this line:

Code: [Select]
echo '<ul class="topnav"><li><a id="accueil2" href="'.osc_base_url().'"><img src="oc-content/plugins/jquery_menu/accueil.png" /></a></li>';

with:

Code: [Select]
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
« Last Edit: May 01, 2015, 09:26:17 pm by teseo »

adv2sell

  • Jr. Member
  • **
  • Posts: 84
Re: Menu Problem
« Reply #9 on: May 01, 2015, 09:30:50 pm »
Teseo

Thank you so much for your time...

You are Fantastic!

it is solved.... :)

Regards

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED]Menu Problem
« Reply #10 on: May 01, 2015, 10:07:23 pm »
You're welcome. :D Would you mind to change the title of this thread to "[SOLVED]jQuery Menu Problem"? Thanks.