-
AuthorPosts
-
December 13, 2017 at 6:29 pm #888497
Sorry, this ticket is still an issue. https://kriesi.at/support/topic/inconsistent-anchors/
To see the issue, please see the private area.
Thanks!
December 20, 2017 at 4:20 am #890688Hey accurIT,
Thank you for using Enfold.
Please try this script in the functions.php file.
// custom script add_action( 'wp_footer', 'ava_custom_script_scroll' ); function ava_custom_script_scroll() { ?> <script type="text/javascript"> (function($) { function a() { $(window).on('load', function(e) { var anchor, loc, cur, hash, tab, parent, pos; url = window.location.href; if (url.indexOf('#') == -1) return; hash = url.substring(url.indexOf('#')); section = $(hash); if(section.length == 0) return; pos = section.offset(); console.log(pos); setTimeout( function() { $(this).scrollTop( pos.top - 83 ); }, 100); }); } a(); })(jQuery); </script> <?php }
Best regards,
IsmaelDecember 20, 2017 at 4:12 pm #890821Hey Ismael. I added the code, cleared and disabled all caching. The issue is still present. Thanks!
December 22, 2017 at 6:42 am #891473Hi,
Thank you for the update. Did you remove the anchored sections? The links goes to different pages now.
Best regards,
IsmaelDecember 23, 2017 at 1:59 am #891782No, I would have told you guys. I’ve removed the custom script provided since this is taking some time to get resolved. It was making things slightly worse as far as the anchors being “off’.
December 24, 2017 at 4:26 am #891911Hi,
Odd. Please provide the WP login details so that we can check it further. Make sure that the Appearance > Editor panel is accessible.
Best regards,
IsmaelDecember 24, 2017 at 3:46 pm #891944Thanks!
January 3, 2018 at 3:28 am #892703Hi,
The page lands to the correct anchor or position when I click on the Pricing > Design menu item. Are you expecting it to scroll smoothly? Please note that it will jump to the anchor directly without scrolling.
Best regards,
IsmaelJanuary 3, 2018 at 3:32 am #892707I’ll take a video to show you what’s happening.
January 3, 2018 at 3:50 am #892714January 3, 2018 at 4:28 am #892718Hi,
Thank you for the update.
I can’t reproduce that issue anymore. Please remove browser cache or hard refresh before checking the page.
Best regards,
IsmaelJanuary 3, 2018 at 5:28 am #892729This has been going on for over 2 weeks. It’s 1000% not a caching issue.
January 4, 2018 at 6:03 am #893097Hi,
This has been going on for over 2 weeks.
We are very sorry about that. The forum was closed for over a week. We modified the code a bit. Please make sure that you’re not looking on a cached version of the site. This is what I get when I click on the Pricing > Design menu item.
Best regards,
IsmaelJanuary 4, 2018 at 8:26 pm #893404The results def have changed, but I’m not seeing what’s in your screenshot. I can fix this myself most likely, but I cannot find your code anywhere.
January 5, 2018 at 10:31 am #893656Hi,
Could you please provide a screenshot? Please purge the cache before checking the page. The script is inside the functions.php file.
Best regards,
IsmaelJanuary 5, 2018 at 5:17 pm #893753I fixed the positioning by adjusting the $(this).scrollTop( pos.top – 52 ); value.
However the JS is not smooth. Meaning, there is a noticeable lag while the script is processing and you can literally see the fix taking place in real time. The video below shows this.
Can we do this with pure CSS?
January 8, 2018 at 4:12 am #894568Hi,
Can we do this with pure CSS?
I’m sorry but we can’t fix this with css. One workaround is to disable the sticky sub menu.
Best regards,
IsmaelJanuary 8, 2018 at 6:58 pm #894844Disappointing answers, as this is stuff (full-width menu, color sections, etc.) native to Enfold. Please have the team look into this for future updates. Removing Enfold elements should not be the answer.
January 9, 2018 at 5:09 am #895080Hi,
I’m sorry about that but I think we already provided a working solution but you’re just looking for a “smoother” transition which will require modification that we can’t provide here, unfortunately. Please hire a freelance developer or contact our partner, Codeable.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.