Hi there guys,
I know there are several threads on this topic, but I am still having problems linking to an anchor on a different page to the original link.
The company icons on the home page here:
https://limelightmedia.tv/home/
are all supposed to link to a specific section on the previous work page here:
https://limelightmedia.tv/previous-work/
When I click each link for example #zurich a / appears before the anchor link in the navigation bar eg.
https://limelightmedia.tv/previous-work/#zurich
I don't know if that is whats causing the problem...
At the moment I have the code you previously suggested in the custom head content:
<script>
window.laytheme.on('newpageshown', function(){
if(window.location.hash.length > 0){
var id = window.location.hash;
if(jQuery(id).length > 0){
jQuery('html, body').animate(
{ scrollTop: jQuery(id).offset().top },
{ duration: 1200 });
}});
</script>
Any further help is massively appreciated!
Cheers!