05 - Enqueue Scripts & Styles - WP Theme Development in Urdu - 2019

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this lecture, we will learn how to enqueue scripts and styles in #WordPress with our theme.
    -----------------------------------------------------------------------------
    🙌 Support This Channel by Buying Stuff Below
    -----------------------------------------------------------------------------
    ✔ $50 Free Credit on DigitalOcean: m.do.co/c/7bee...
    ✔ Elementor Pro: elementor.com/...
    ✔ Buy Domain & Hosting [NameCheap] ➡ bit.ly/2JC7yIc
    -------------------------------------------------------------
    👨‍👩‍👦 JOIN OUR SOCIAL COMMUNITY:-
    -------------------------------------------------------------
    FAN PAGE: / wpacademy.pk
    GROUP: / xitclub
    FORUMS: wpacademy.pk/f...

ความคิดเห็น • 36

  • @zahirabs1
    @zahirabs1 5 ปีที่แล้ว +2

    I really like the style of your teaching.
    Thumps up bro!

  • @ahsanashraf5887
    @ahsanashraf5887 4 ปีที่แล้ว

    very nice sir ..

  • @tohabin5064
    @tohabin5064 4 ปีที่แล้ว

    thank you sir.

  • @BilalAli-eh9no
    @BilalAli-eh9no 2 ปีที่แล้ว

    function wali file k php tag ko close (?>) nh krte kya ?

  • @namakdani007
    @namakdani007 3 ปีที่แล้ว

    nice Sir

  • @WallSpot
    @WallSpot 5 ปีที่แล้ว

    I have noticed that wordpress asking for index file though I have an index file in the main folder. So, I created another theme (folder) with only two files one is index.php and a style.css, and it shows in the wordpress theme page.
    Then I went back to move the index file to css folder under main folder. And it worked without even an index file in the main folder.
    So what the conclusion here...css folder requires an index file whether main folder contains it or not....so I have created an index file in css folder as well as in the main folder...IS IT WHAT WE HAVE TO DO or we are missing something...?

  • @muhammadalimalik1407
    @muhammadalimalik1407 6 ปีที่แล้ว

    Bro, I need your help. can you make a video on how to add a trending or latest posts marquee? Also how to display posts in grid view? how to create load more posts button? I will be thankful to you if you cover these topics in your video series.

  • @WallSpot
    @WallSpot 5 ปีที่แล้ว

    Yes it shows "template is missing..." style.css is not loading, I think wp_head(); has something...

  • @umairasgharr
    @umairasgharr 3 ปีที่แล้ว +1

    Code Little Correction Put this code in function.php
    add_action(
    'wp_enqueue_scripts',
    'netsdemy_theme_scripts'
    );
    function netsdemy_theme_scripts() {
    echo "Does this output to the actual page?";
    wp_enqueue_style('style.css', get_template_directory_uri().'/style.css');
    wp_enqueue_script('my-slider', get_template_directory_uri().'/assests/js/myjs.js');
    }
    add_action('admin_enqueue_scripts', 'netsdemy_theme_scripts');

  • @mdmahbubalam3873
    @mdmahbubalam3873 3 ปีที่แล้ว

    i need the wordpress theme development course each lecture exercise file but in your wp-academy website course page i couldn't found any lecture exercise file download option. can you please give the link to download it. Jajakallah Khairan.

    • @WPAcademyPK
      @WPAcademyPK  3 ปีที่แล้ว

      Exercise files are available from lecture 8 and onward.

    • @mdmahbubalam3873
      @mdmahbubalam3873 3 ปีที่แล้ว

      @@WPAcademyPK Thanks For Your Reply. But I couldn't find where to get it. I finished all the lecture but unable to download exercise file. Can you please help me..May Allah Bless You.

    • @WPAcademyPK
      @WPAcademyPK  3 ปีที่แล้ว

      @@mdmahbubalam3873 There is a Materials tab in each lecture, click on it to access exercise files. There also a dedicated Exercise files lecture in Assessment Section.

  • @M6863
    @M6863 11 หลายเดือนก่อน

    styles.css file is not showing up in head

  • @daniyalkhan2185
    @daniyalkhan2185 5 ปีที่แล้ว

    aoa sir css file include ni ho rahi enqueue krna k bad bhi

  • @kamranrana9096
    @kamranrana9096 6 ปีที่แล้ว

    or function me ap nay php tag ko last me close bhi nhi kia?

  • @himanshuneegex825
    @himanshuneegex825 4 ปีที่แล้ว

    css file not included while i write same code so plz reply and give the correct code ...how i use css file..plz reply fast

    • @bilalahmadkhan4971
      @bilalahmadkhan4971 4 ปีที่แล้ว +1

      check the name of funtions.php file ....this is functions not function

    • @mohdtaha9153
      @mohdtaha9153 4 ปีที่แล้ว +1

      @@bilalahmadkhan4971 thanks bro you saved my time.

    • @ftv6377
      @ftv6377 4 ปีที่แล้ว

      @@bilalahmadkhan4971 thnk yara

  • @shafiullahsyed4255
    @shafiullahsyed4255 5 ปีที่แล้ว

    Sir stylesheet include nhi hu raha hai js kai file bi reason kya hai

    • @WPAcademyPK
      @WPAcademyPK  5 ปีที่แล้ว

      Dear, there must be some issue with your code or syntax. You can use exercise files from the course wpacademy.pk/course/basic-wp-theme-development/

    • @abubakarqureshi5685
      @abubakarqureshi5685 4 ปีที่แล้ว

      @@WPAcademyPK sir g file he open nhi ho rhi

  • @kamranrana9096
    @kamranrana9096 6 ปีที่แล้ว

    bhai error kesy find krun k koi error show bhi nhi ho raha or style or script ki file chal bhi nai rhi.

    • @SalmanAnsari-dj4wx
      @SalmanAnsari-dj4wx ปีที่แล้ว

      same problem.. scripts files work nhi kr rahi but show ho rhi view source me..

  • @kamranrana9096
    @kamranrana9096 6 ปีที่แล้ว

    bhai style sheet or script files load nhi ho rai.

  • @M6863
    @M6863 11 หลายเดือนก่อน

    function not working.

  • @kamranrana9096
    @kamranrana9096 6 ปีที่แล้ว +1

    func work nhi kr raha.

    • @himanshuneegex825
      @himanshuneegex825 4 ปีที่แล้ว

      same problem i face .. but not get the right method ..if you got it plz tell on

  • @programminggod4716
    @programminggod4716 6 ปีที่แล้ว

    bhai jaldi upload karna