Anchor doesn't work until on the page

Anchor doesn't work until on the page was created by teddirez

Posted 8 years 4 months ago #31292
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.

Replied by ced1870 on topic Anchor doesn't work until on the page

Posted 8 years 4 months ago #31299
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

by ced1870

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

Replied by teddirez on topic Anchor doesn't work until on the page

Posted 8 years 4 months ago #31314
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.

Replied by ced1870 on topic Anchor doesn't work until on the page

Posted 8 years 4 months ago #31316

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

by ced1870

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

Replied by teddirez on topic Anchor doesn't work until on the page

Posted 8 years 4 months ago #31330
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.

Replied by ced1870 on topic Anchor doesn't work until on the page

Posted 8 years 4 months ago #31331
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

by ced1870

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

Time to create page: 0.679 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1200 guests and no members online