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

    I’m having the exact same problem now.

    Hope you can help.

    #1114542

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

    #1114818

    Yes, the solution solved the issue, until the theme was updated.

    #1115020

    Hi,

    Thank you for the update.

    Did you keep the previous modifications? This one for example.

    // https://kriesi.at/support/topic/one-page-navigation-not-working-properly-when-first-accessing-site/#post-901161

    Best regards,
    Ismael

    #1115085

    I haven’t deleted anything myself. But it’s possible that the modifications were overwritten when the theme was updated.

    #1115562

    Hi 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,
    Victoria

    #1116010

    I have installed a child theme now, but I can’t seem to find the correct place in the files to apply the solution.

    #1116416

    Hi Estra,

    Here is how to do it:
    https://kriesi.at/support/topic/edit-shortcodes-js-in-child-theme/#post-399336

    Best regards,
    Victoria

    #1116610

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

    #1116919

    Hi,

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

    #1117018

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

    #1117343

    Hi,

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

    #1117345

    Works perfectly!
    Thanks for the help. Much appreciated!

    #1117443

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘One-page navigation + masonry animations not working properly’ is closed to new replies.