-
AuthorPosts
-
November 13, 2018 at 10:02 am #1032913
Hello!
I’ve found this problem on other threads but the solution doesn’t work for me so I’m starting new one here.
When scrolling down using arrow in 100% height color section it does not center. This is probably because I use sticky menu.
Can you please help?
November 15, 2018 at 9:38 am #1033856Anyone??
November 16, 2018 at 7:03 pm #1034540Hi grafixstudio,
I looked at your website. Seems to scroll fine on my end. Which browser are you working in?
Could you please make a screencast of the issue?
Best regards,
VictoriaNovember 19, 2018 at 4:35 am #1034993I am using Chrome. You see in the pictures that it doesn’t center.
If you are thinking that the arrow is displayed correctly and therefore it’s correct – it is not. I moved up the arrow with negative margin just for it to be visible to me. The arrow is also offset.
This has been an issue for users before. I tried this solution but it didn’t work: https://kriesi.at/support/topic/scroll-down-to-next-section-offset/
November 21, 2018 at 2:40 pm #1036071Hi grafixstudio,
I have checked it and it is centered on my end, here is a screenshot https://imgur.com/a/7XDd1Yp
Best regards,
NikkoNovember 21, 2018 at 4:28 pm #1036155So you can’t help me?
It’s very clear that the problem is the menu being sticky. because it’s off by the same height as the menu.
You have helped someone else with this before on this thread:
https://kriesi.at/support/topic/scroll-down-to-next-section-offset/#post-1032954
November 22, 2018 at 3:40 pm #1036559Hi grafixstudio,
Of course we do want to help you however, I’m having a hard time finding the issue on my end, that’s why I also sent a screenshot.
I have misunderstood the issue you have, but I understood it now, since the issue will be shown if you clicked on the arrow above it thus it moves to the section on the screenshot and doesn’t show as aligned vertically.
Can you give us ftp access? I think it can be fixed by overriding avia.js and making some tweaks.Best regards,
NikkoNovember 22, 2018 at 4:41 pm #1036599Yes of course. Provided in private.
I am using child theme so I assume you can make changes and implement there? So it is safe for future updates?
Thank you!
November 26, 2018 at 7:47 am #1037534Hi grafixstudio,
Thanks for providing the ftp access, this is good now :)
I see you have already created a js folder and added the modified avia.js there as instructed in the other link.
You were only missing this part, which is to add this code in functions.php of your child theme:function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
I think what you should do is in every update just check if there are updates in avia.js file, you can do this by keeping an original avia.js from your current version of Enfold.
When an update is being released, get the content of the avia.js in the latest release version then compare them here: https://www.diffchecker.com/
If two files are identical then that means no changes are being made to that file and you don’t need to update avia.js in the child theme.
However if they are not identical, you can just copy avia.js from the latest release then add those 2 line of codes again, this way you can still avail on the latest functionalities from the latest release.
Hope this helps.Best regards,
NikkoNovember 27, 2018 at 8:36 am #1037929Yes, this helps. Thank you
But now there is a new problem. The hamburger icon doesn’t change into and X and you can’t close it.
I verified that it is the code above that causes the problem.
November 27, 2018 at 2:01 pm #1038004Hi grafixstudio,
I have checked it actually the code isn’t the issue but avia.js in Enfold isn’t dequeued even with the code, probably because other scripts are dependent on it.
I have commented out hook so it doesn’t run the code, can you try doing the changes on the Enfold theme itself? this should fix the issue, though it’s not really ideal.Best regards,
NikkoNovember 27, 2018 at 2:19 pm #1038011You mean in the avia.js in the original theme?
What abut future updates?
And isn’t there any other solutions for this, maybe a more css-based solution?
November 27, 2018 at 4:32 pm #1038061Hi grafixstudio,
Yes, I do understand your concern however avia.js couldn’t be replaced anymore since some js files depends on it.
I don’t think CSS based solution would work, since it requires dynamic calculation.
I also couldn’t find how to dequeue a js file that’s being depended by other js files, I think if wordpress allows this then it would be possible using the child theme.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.