Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #841658

    Hi,
    Where can I find the enfold/js file? And do I need a child theme for that?

    Thanks in advance!

    #841988

    Hey tonydobrevski,

    There is no such file, enfold has different js files. Do you have an issue? Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #842100

    Dear Victoria,

    I would like to change the size of the header when it shrinks. I found the answer here – https://kriesi.at/support/topic/controling-the-size-of-shrinking-header/ but can’t find the folders.

    Thank you in advance!
    Best,
    Anton

    • This reply was modified 7 years, 3 months ago by tonydobrevski.
    #843194

    Hi,

    Please go to wp-content/themes/enfold/js/avia.js via FTP to find the file, then copy it inside enfold-child/js/ folder and add following code to Functions.php file of your child theme

    function wp_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_print_scripts', 'wp_change_aviajs', 100 );

    Best regards,
    Yigit

    #844255

    Thank you very much!

    #844425

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Where can I find the enfold/js file?’ is closed to new replies.