Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265671

    Hi Support Team,

    I have had to make a minor change to a line of code in enfold/js/avia.js in order to fix a compatibility issue with one of the plugins I am using; and I would like to use a child theme so that I don’t have to make this change every time I update the theme. Can you please instruct me on how I can do this? I have watched the following video (https://vimeo.com/67221517) and I created the child theme, but if I place the ‘js’ folder into the child theme it seems like the site does not recognize the modified avia.js file and it just runs the file from the main theme.

    Thanks
    Asad

    #265684

    Hi AsadIC!

    Since the enque function is pointing to the parent location you’ll first need to dequeue and then enque your own version. See: https://kriesi.at/support/topic/use-avia-js-in-child-theme/#post-230498

    Just keep an eye on the change log when the theme updates since Kriesi often updates avia.js and you’ll need to update your child theme version as well if that does happen.

    Regards,
    Devin

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.