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...
I really like the style of your teaching.
Thumps up bro!
very nice sir ..
thank you sir.
function wali file k php tag ko close (?>) nh krte kya ?
nice Sir
Thanks and welcome
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...?
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.
Yes it shows "template is missing..." style.css is not loading, I think wp_head(); has something...
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');
thanks bro
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.
Exercise files are available from lecture 8 and onward.
@@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.
@@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.
styles.css file is not showing up in head
aoa sir css file include ni ho rahi enqueue krna k bad bhi
or function me ap nay php tag ko last me close bhi nhi kia?
not compulsory
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
check the name of funtions.php file ....this is functions not function
@@bilalahmadkhan4971 thanks bro you saved my time.
@@bilalahmadkhan4971 thnk yara
Sir stylesheet include nhi hu raha hai js kai file bi reason kya hai
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/
@@WPAcademyPK sir g file he open nhi ho rhi
bhai error kesy find krun k koi error show bhi nhi ho raha or style or script ki file chal bhi nai rhi.
same problem.. scripts files work nhi kr rahi but show ho rhi view source me..
bhai style sheet or script files load nhi ho rai.
function not working.
func work nhi kr raha.
same problem i face .. but not get the right method ..if you got it plz tell on
bhai jaldi upload karna
hahahha Wooow Programming God need Help
@@muhammadfaizanjunaid4825 Yes bro 😂