-
AuthorPosts
-
June 28, 2019 at 4:02 pm #1114287
Hi.
In November 2017 I started the following thread:
https://kriesi.at/support/topic/one-page-navigation-not-working-properly-when-first-accessing-site/#post-947209I’m having the exact same problem now.
Hope you can help.
June 30, 2019 at 12:59 am #1114542Hey Estra,
Thank you for the link, so I assume that this solution worked for you until you updated the theme again?
Please include an admin login & FTP access in the Private Content area so we can apply it again.Best regards,
MikeJuly 1, 2019 at 9:02 am #1114818Yes, the solution solved the issue, until the theme was updated.
July 2, 2019 at 5:28 am #1115020Hi,
Thank you for the update.
Did you keep the previous modifications? This one for example.
Best regards,
IsmaelJuly 2, 2019 at 8:55 am #1115085I haven’t deleted anything myself. But it’s possible that the modifications were overwritten when the theme was updated.
July 3, 2019 at 8:16 pm #1115562Hi Estra,
Then you can try adding the code from the thread again. Also, you might want to use the child theme this time.
Best regards,
VictoriaJuly 5, 2019 at 10:50 am #1116010I have installed a child theme now, but I can’t seem to find the correct place in the files to apply the solution.
July 7, 2019 at 11:09 am #1116416Hi Estra,
Here is how to do it:
https://kriesi.at/support/topic/edit-shortcodes-js-in-child-theme/#post-399336Best regards,
VictoriaJuly 8, 2019 at 10:35 am #1116610I apologize for being unclear. I meant that I’m having difficulties in finding the correct place in the shortcodes.js file to place the solution.
I can’t seem to find the “avia_masonry” function declaration. Last time the solution was applied roughly on line 1587, but now my file is only 1365 lines.July 9, 2019 at 6:32 am #1116919Hi,
Thank you for the update.
The script is now located in a separate file inside the config-templatebuilder > aviashortcodes > masonry. You may need to de-register it and then register it back using the child theme path or folder.
Best regards,
IsmaelJuly 9, 2019 at 11:50 am #1117018Thanks. The solution seems to work perfectly when I implement it into the parent theme. Nothing changes when I implement it into the child theme.
But that’s probably because I need to de-register and register it again using the child theme path, but I don’t actually know how to do that.July 10, 2019 at 9:33 am #1117343Hi,
Thank you for the update.
Create a directory in the child theme called shortcodes/masonry_entries and place the masonry_entries.js file inside. After that, add the following snippet in the functions.php file to register the script back using the new path.
function ava_wp_enqueue_scripts_mod() { wp_dequeue_script( 'avia-module-masonry' ); wp_enqueue_script( 'avia-module-masonry-child', get_stylesheet_directory_uri().'/shortcodes/masonry_entries/masonry_entries.js', array('avia-module-isotope'), 3, true ); } add_action( 'wp_enqueue_scripts', 'ava_wp_enqueue_scripts_mod', 100 );
Best regards,
IsmaelJuly 10, 2019 at 9:41 am #1117345Works perfectly!
Thanks for the help. Much appreciated!July 10, 2019 at 1:08 pm #1117443Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘One-page navigation + masonry animations not working properly’ is closed to new replies.