1. Onepage
  2. Friday, 12 August 2016
Hi guys,

I'm getting an error on my site with my menu, after selecting a menu item which directs the site to the 'blog' layout, you can't get back to the main site as clicking the menu item just appends the current address with the wrapper.

Example: I have a button called 'Items in Stock', clicking it sends the user to /index.php/items-in-stock, however, when you then click on another menu item, like the 'About' menu, it sends the user to this address: /index.php/items-in-stock#about-wrapper.

The console in Chrome is telling me there is an "Uncaught TypeError: Cannot read property 'top' of undefined", on line 202 of jquery.nav.js.

Please advise how to fix this error.

Thanks.
Accepted Answer
Dear,

Thanks for your query. Please follow the below instruction. If you need more help, please let us know.

1. Open your template index.php file & find out below code

$doc->addScriptdeclaration( "\nvar onePageUrl = '".JURI::base(true) . "';\n" );


and replace with this code

$doc->addScriptdeclaration( "\nvar onePageUrl = '".JURI::base() . "';\n" );


-Thanks
  1. more than a month ago
  2. Onepage
  3. # Permalink
Responses (7)
Hi,

Please share your site url with me. Let me check first. Because, Onepage template has solution similar problem in our forum.

-Thanks
  1. more than a month ago
  2. Onepage
  3. # 1
Hi Toufiq,

Sorry mate, I searched the forums and couldn't find anything.

My website is http://redhorseleather.com.au

Thanks.
  1. more than a month ago
  2. Onepage
  3. # 2
HELLLLLLLOOOOOOOOOOOOOOOOOOOOOO?
  1. more than a month ago
  2. Onepage
  3. # 3
Guys, I'd really like to get this issue resolved. Please respond.
  1. more than a month ago
  2. Onepage
  3. # 4
Thanks Toufiq, that solved my issue.

Much appreciated.
  1. more than a month ago
  2. Onepage
  3. # 5
Patrick Broughton wrote:

Thanks Toufiq, that solved my issue.

Much appreciated.


Hi, You are most welcome & Thanks
  1. more than a month ago
  2. Onepage
  3. # 6


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.