Hello-
I am using scrollable for navigation on WP, and need it setup so if there is a post it goes to the blog(4). It usually starts off scrolling to 4 but occasionally turns around and head back to home(0).
I put this in the header, incase it was a load sequence issue:
And followed up with this in the footer:
Any help or ideas you can give at all would be greatly appreciated. Trying to get it so when users are linked to the site they end up on the blog post they were sent to, not the home page.
I am using scrollable for navigation on WP, and need it setup so if there is a post it goes to the blog(4). It usually starts off scrolling to 4 but occasionally turns around and head back to home(0).
I put this in the header, incase it was a load sequence issue:
<script>
$(function() {
$("#flowpanes").scrollable({ circular: false, mousewheel: false }).navigator({
navi: "#drop",
naviItem: 'a',
activeClass: 'current',
easing: 'swing',
speed: 1000,
history: true
});
});
</script>
And followed up with this in the footer:
<?php if (is_single()) : ?>
<script>
$(window).load(function() {
var api = $("#flowpanes").data("scrollable");
api.seekTo(4, 2000);
});
</script>
<?php endif; ?>
Any help or ideas you can give at all would be greatly appreciated. Trying to get it so when users are linked to the site they end up on the blog post they were sent to, not the home page.
