#7 Advanced WordPress Theme Development | Wordpress theme development course | enqueue scripts

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 33

  • @ck0024
    @ck0024 2 года назад +1

    Why is this course FREE? 😒
    You saved my career. Can't thank you enough, man.👍

  • @kentangditaman
    @kentangditaman 2 года назад +1

    Thanks for great tutorial. Explanation and step by step is very clear.

    • @Codeytek
      @Codeytek  2 года назад

      Glad it was helpful!

  • @farhanshaikh1819
    @farhanshaikh1819 3 года назад

    Great work sir I'm loving it

  • @andydowson8648
    @andydowson8648 4 года назад +1

    Hi, fantastic tutorial series.

  • @vuejs1
    @vuejs1 2 года назад +2

    I wish I can press like button 2 times

    • @Codeytek
      @Codeytek  2 года назад

      You can press super thanks too 😊

  • @KarinaSchnitte
    @KarinaSchnitte 4 года назад +4

    Thanks for the great tutorials.
    Why does get_template_directory_uri within filemtime give me an error and get_template_directory does not. (of course with specification of the file)
    Both point to the file, don't they?

    • @Codeytek
      @Codeytek  4 года назад +1

      Welcome. Thats because filemtime requires absolute file path as a parameter and get_template_directory_uri gives 'uri'
      www.php.net/manual/en/function.filemtime.php

    • @KarinaSchnitte
      @KarinaSchnitte 4 года назад

      @@Codeytek Thank you!

  • @CodingCush
    @CodingCush 3 года назад +1

    Excellent tutorial 👍🔥🔥

  • @WebWithZaheb
    @WebWithZaheb 2 года назад +1

    Thanks for series.
    If I am using wrong function name i.e. wp_enqueque_scripts() instead of wp_enqueque_script(), I am getting internal 500 error. Why wordpress is not able to check that function name is wrong though i have already set define('WP_DEBUG', true);
    These mistakes can make debugging quite hard if wordpress is not able to track.

  • @easywebsolution7044
    @easywebsolution7044 3 года назад

    Thank you so much to share this video

  • @diegoalvarez437
    @diegoalvarez437 3 года назад +2

    Hi, in the dependencies ($deps) I see people often use array() instead of [ ] , could you please tell what's the difference, if there's one?

    • @Codeytek
      @Codeytek  3 года назад +3

      [] is a short syntax for array() that is only supported in PHP >= 5.4

  • @Wiiieken
    @Wiiieken 6 месяцев назад

    Nice tutorial, a bit hard to follow at times because of your lines of code being so long they cant really fit the screen and become hard to read. Try making a habit of breaking the lines up or formatting them =)

  • @jkDobariya
    @jkDobariya 3 года назад

    hello,
    Thank you so much for providing great tutorial of wordpress theme deveopment,
    I've one query how to move jquery in footer?
    thank you.

  • @lightningxiv-eb9rv
    @lightningxiv-eb9rv 9 месяцев назад

    What an angel!

  • @farhanmurtaza16
    @farhanmurtaza16 Год назад

    Sir plz tell me about 500 error it shows in console when the website is loaded.

  • @VinceM1000
    @VinceM1000 2 года назад

    Just started going through these tutorials, great so far. As far as the the .js in the header I have been using the defer js in the header. From what I have been reading that is the best practice now. Just your thoughts?

    • @Codeytek
      @Codeytek  2 года назад

      I agree, downloading the script in parallel to parsing the page, and executing it after the page has finished parsing, using defer attribute definitely has a positive effect on core web vitals.

  • @SimPwear84
    @SimPwear84 4 года назад

    Great content as always

  • @maulikpolra8591
    @maulikpolra8591 4 года назад +1

    I'm like and learn this course. but can i make a theme like others theme in wordpress.

    • @Codeytek
      @Codeytek  4 года назад +1

      Yes u can

    • @maulikpolra8591
      @maulikpolra8591 4 года назад

      @@Codeytek Sir, Can you gives me tips about how to connect my codee with my git repo.?

  • @heybaba77
    @heybaba77 3 года назад

    Hey Imran what is the name of the IDE you are using to code?

  • @thomasmokkoi
    @thomasmokkoi 2 года назад

    It doesn't work
    wp_enqueue_script ( 'main-js', get_template_directory_uri() . '/assets/main.js', [], filemtime( get_template_directory() . '/assets/main.js' ), true);
    It work
    wp_enqueue_script ( 'main-js', get_template_directory_uri() . '/assets/main.js', [], filemtime( get_template_directory() . '/assets/main.js' ));
    true doesn't work but false worked.