Use WP Enqueue Script To Properly Add Javascript Files To WordPress

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 33

  • @wplearninglab
    @wplearninglab  6 років тому +1

    If you enjoyed this video don't forget to the like it and subscribe! Then check out this playlist about high-powered WordPress admin tweaks: ua-cam.com/video/YhKVXC8t6DA/v-deo.html

  • @BSt3ph
    @BSt3ph 2 роки тому

    Great video! Simple and easy to understand 👍

  • @bobbydelavega9425
    @bobbydelavega9425 5 років тому +2

    As ever Bjorn; helped. You're a star buddy thank you ;)

    • @wplearninglab
      @wplearninglab  5 років тому +1

      You're welcome Bobby, I'm happy I could help. Thanks for watching!

    • @bobbydelavega9425
      @bobbydelavega9425 5 років тому +1

      WordPress Tutorials - WPLearningLab you’ve got me out moving forward many a time! Thanks brother

    • @wplearninglab
      @wplearninglab  5 років тому +1

      That's awesome 😀

  • @copaceticobserver
    @copaceticobserver 29 днів тому

    What about scripts that import other scripts?

  • @ChrisMosesBrownMind
    @ChrisMosesBrownMind 5 років тому +1

    Thank you so much!]

    • @wplearninglab
      @wplearninglab  5 років тому

      You're welcome Chris, thanks for watching!

  • @MarloweRamirez-e3q
    @MarloweRamirez-e3q 2 місяці тому +1

    can you update in video

    • @wplearninglab
      @wplearninglab  Місяць тому

      I've been working on updating older videos, but what I show in this one should still work. Did you get an error?
      Sorry for the delay in replying. I'm on summer holiday time with 3 kids...it's a tough balancing act.

  • @hudsonvan4322
    @hudsonvan4322 4 роки тому +2

    Thank you helping me. I spend 4 days to find the solve.

    • @wplearninglab
      @wplearninglab  4 роки тому

      You’re welcome Hudson, Im happy you got it figured out :) Thanks for watching!

  • @gretchenthomas973
    @gretchenthomas973 3 роки тому

    Hi Bjorn, I created my WordPress site locally with a custom theme based on the Underscore theme. I then migrated it to a remote site. I make changes in Visual Studio Code and then upload them through FTP. I am in a JavaScript class and for the final my teacher wants me to add JavaScript to my WordPress site, but we have received no instructions on how to do that. I found your tutorial and followed your direction. I see the .js file in my source files, so it is being uploaded. But the code is not working. It's supposed to be a digital clock in my footer: www.zadebalance.com/

  • @mememihnea
    @mememihnea 4 роки тому +1

    Great explanation and video. You saved me after hours of searching

    • @wplearninglab
      @wplearninglab  4 роки тому +1

      I'm happy to help Nandra, thanks for watching!

  • @rebekahralston4859
    @rebekahralston4859 4 роки тому

    is adding files to your WordPress core best practice? What happens when you update core? Shouldn't it go somewhere in the theme folder?

  • @ullasrathod3800
    @ullasrathod3800 6 років тому

    iam not sure what this video is actually solving can u pls tell me if this video solves this issue "Optimize the order of styles and scripts
    "

  • @linkonprime
    @linkonprime 4 роки тому

    How can I make the script tag include type="module" ?

  • @prawnyb
    @prawnyb 4 роки тому

    Thumbs up for the how about a thumbs up animation 🤙🤙🤙

  • @filipstojanovic7291
    @filipstojanovic7291 6 років тому +1

    Great video! Thank you

    • @wplearninglab
      @wplearninglab  6 років тому

      Thanks Filip and you're welcome. Thanks for watching!

  •  5 років тому

    how to load the js script in footer? and prevent to load in head?

  • @jsantos4521
    @jsantos4521 4 роки тому +1

    tanks!

    • @wplearninglab
      @wplearninglab  4 роки тому

      You’re welcome Jonison, thanks for watching!

  • @diegoquisbert1411
    @diegoquisbert1411 3 роки тому

    thanks bro

  • @prabhjotsingh4882
    @prabhjotsingh4882 4 роки тому

    Thanks for making my day

  • @Collinmcnulty
    @Collinmcnulty 3 роки тому

    starts at 0:58

  • @randalharrison7467
    @randalharrison7467 4 роки тому

    Excellent and clear tutorial. Thanks so much!

    • @wplearninglab
      @wplearninglab  4 роки тому

      You’re welcome Randal, thanks for watching!

  • @TheBobstar89
    @TheBobstar89 5 років тому

    Half the video in and you haven't even covered enqueuing OR functions.php in general. Back up practices are great in general but I do not think the title of this video says anything about covering serverside management or local data back up conventions.
    In reflection of the actual enqueuing, I doubt a function would ever take an arguement 'just because' please do more research before covering such a small aspect of functions.php. If you were "enqueuing" any JavaScript file, why be so convoluted.
    I'm sorry but I really wanted to put more time into your video before publishing this comment but I have ran out of time.
    Thanks

    • @dontbeafraid5313
      @dontbeafraid5313 4 роки тому +1

      Then watch another video or create your own. 7 minutes you cannot even watch. Pathetic and ungrateful is this comment