Anchor doesn't work until on the page

More
9 years 2 days ago #31292 by teddirez
If you visit middlerock.com.au/accommodation/accommodation-types

and click on the first accommodation type "3 bedroom townhouses", you will see it loads the relevant page but not at the anchor. Clicking it a second time (once page has loaded) will take you to the anchor. How can I get it to work on page load?

Please Log in or Create an account to join the conversation.

More
9 years 2 days ago #31299 by ced1870
Hi
There is no css class "scrollTo" on your link, so the plugin will not work on this ;)
here you are just using a standard anchor behavior
CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
9 years 1 day ago #31314 by teddirez
OK, maybe wrong example there as you're right, the CSS isn't present.. however.. it IS in the menu item "bookings/accommodation/2 br spa" and yet still behaves similarly.

Please Log in or Create an account to join the conversation.

More
9 years 1 day ago #31316 by ced1870

you're right, the CSS isn't present.. however.. it IS in the menu item "bookings/accommodation/2 br spa"

sorry but no, it is not. Check the code of your link
Code:
<a class="item" href="http://middlerock.com.au/accom/2-bedroom-spa-cabin#rt-mainbody">

there is no css class scrollTo

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
9 years 18 hours ago #31330 by teddirez
hmm, this is all very odd. as it is listed in the style. Something must be blocking it out.

It doesn't seem to follow the expected anchor behaviour even without the styling..
I'm willing to spot a $50 bounty to get these links to visit the anchor properly if you're interested..

Please Log in or Create an account to join the conversation.

More
9 years 9 hours ago #31331 by ced1870
try to publish a native joomla menu module with this menu, because here the menu is rendered by the RT framework

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.233 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1204 guests and one member online