Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #550299

    Hi there,
    I created a child theme with a small style.css file in it. This is working well. Further I changed the file avia.js on the end (to prevent the pop-up of the title of my pictures when hoovering) with following code:
    //comment …
    jQuery(document).ready(function($){
    jQuery(‘img’).removeAttr(‘title’);
    });
    I put this avia.js file in the root of the folder enfold-child and also in a separate folder enfold-child/js. But in both cases no result: it looks if this file is ignored.
    What is wrong?

    #550330

    Hi Andrej!

    Please 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 );

    and move modified file inside /js folder

    Cheers!
    Yigit

    #550406

    Hi Yigit,
    It works, great! Thanks!
    Andrej

    #550421

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Child theme and Enfold’ is closed to new replies.