Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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!

    #890688

    Hey 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,
    Ismael

    #890821

    Hey Ismael. I added the code, cleared and disabled all caching. The issue is still present. Thanks!

    #891473

    Hi,

    Thank you for the update. Did you remove the anchored sections? The links goes to different pages now.

    Best regards,
    Ismael

    #891782

    No, 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’.

    #891911

    Hi,

    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,
    Ismael

    #891944

    Thanks!

    #892703

    Hi,

    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,
    Ismael

    #892707

    I’ll take a video to show you what’s happening.

    #892714

    #892718

    Hi,

    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,
    Ismael

    #892729

    This has been going on for over 2 weeks. It’s 1000% not a caching issue.

    #893097

    Hi,

    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.

    // https://imgur.com/a/ASIPq

    Best regards,
    Ismael

    #893404

    The 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.

    #893656

    Hi,

    Could you please provide a screenshot? Please purge the cache before checking the page. The script is inside the functions.php file.

    Best regards,
    Ismael

    #893753

    I 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?

    #894568

    Hi,

    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,
    Ismael

    #894844

    Disappointing 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.

    #895080

    Hi,

    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

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.