How to Build a WordPress Theme from Scratch with WooCommerce (2019)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2019
  • In this rather long tutorial, I'm going to show you how to create a WordPress theme from scratch, and then incorporate WooCommerce into it. You can then go for your life and customise it with CSS how you want.
    Specifically, I will be talking about:
    - Using Webpack (from Laravel) for CSS and JS (With SASS)
    - Creating a new WordPress theme from scratch
    - Using Menus, Widgets and Post Thumbnails
    - Different WordPress page templates
    - Installing and Configuring WooCommerce and then making it work in the simple theme we developed.
    I am using Webpack to combine my SASS and JS, but you do not have to use it if you do not want to. You can simply enqueue your CSS and JS directly in functions.php.
    Two hours is not enough to explain everything about developing a WordPress theme with WooCommerce, but it gives you a good idea of how to start and the absolute basics.
    WooCommerce is an excellent E-Commerce solution for small to medium sized websites that need a way to sell products easily. WooCommerce in WordPress allows this.
    Let me know what you think and if you have any questions and I can help you learn more! Cheers.
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @mostmojo
    @mostmojo 3 ปีที่แล้ว +10

    Love it, thanks for the tuts! For anyone wondering, Laravel updated their package.json, which doesn't include SASS so here is what worked for me:
    {
    "private": true,
    "scripts": {
    "dev": "npm run development",
    "development": "mix",
    "watch": "mix watch",
    "watch-poll": "mix watch -- --watch-options-poll=1000",
    "hot": "mix watch --hot",
    "prod": "npm run production",
    "production": "mix --production"
    },
    "devDependencies": {
    "axios": "^0.21",
    "laravel-mix": "^6.0.6",
    "lodash": "^4.17.19",
    "resolve-url-loader": "^3.1.2",
    "sass": "^1.32.8",
    "sass-loader": "^11.0.1"
    }
    }

  • @Asifkhan-dl4so
    @Asifkhan-dl4so 3 ปีที่แล้ว

    coming from some one who watches lot of these videos , u r one of the best , right up there the way u explain everything precise but very efficient , u r rock star , thanks a lot .

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

    This is how tutorials should be.

  • @mvdAmine
    @mvdAmine 6 หลายเดือนก่อน +1

    1:54:11 the funniest thing here is that u write border : 0 ; at the bottom and u was asking why the the border is not showing hehehe , Thanks mate for your efforts

  • @rimann20
    @rimann20 5 ปีที่แล้ว +13

    Great tutorial. There is unfortunately not very much information at all about custom theming with WooCommerce on TH-cam, thankfully this video came to the rescue. Very much appreciated!!

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

      Thank you no problem you are welcome

  • @ubaig54
    @ubaig54 4 ปีที่แล้ว +6

    I've been looking for the tutorial like this for months, thanks for the great lesson.

    • @mrdigitalau
      @mrdigitalau  4 ปีที่แล้ว +2

      You're welcome Usama!

  • @joe-un1ky
    @joe-un1ky 4 ปีที่แล้ว +76

    This is an excellent tutorial.
    I would REALLY love a part 2 on how to go deeper into WooCommerce and add more functionality.

    • @mrdigitalau
      @mrdigitalau  4 ปีที่แล้ว +32

      Hey thank you! Yes I am looking into doing this please subscribe and you will be notified once it becomes available :) Cheers

    • @igor9919
      @igor9919 4 ปีที่แล้ว +5

      @@mrdigitalau Can't wait for that! Thanks so much Mr Digital!

    • @MrIMPERIALpl
      @MrIMPERIALpl 4 ปีที่แล้ว +2

      @@mrdigitalau Would love to watch part 2

    • @antoinesader8216
      @antoinesader8216 4 ปีที่แล้ว +3

      Me too really !

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

      part 2 master!!! thanks for the class!!

  • @shalinisharma6108
    @shalinisharma6108 4 ปีที่แล้ว +6

    Great Tutorial! Very clear and specific. Thanks a lot.

  • @amdimov
    @amdimov 4 ปีที่แล้ว +6

    39:31 "I will show you the power, my young padawan!" :D You are a great teacher. The first video that makes it all clear. Thank you!

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

      Thanks Alex :) Appreciate it man

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

    This is a best WooCommerce tutorial I've ever seen, thank you sir!

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

      Thanks Evgeny, much appreciated!

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

    Que tutorial mas completo! una joya de verdad ;) Thanks a lot for this, gonna help me to start building eCommerce from scratch.

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

    I enjoy your tutorials. They are full explained and consistent!

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

      Glad you like them! Take care Roman

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

    Thank you very much sir. This is an amazing tutorial. I have been looking for things forever. This marks a new beginning in my web designing.. Thanks again.

  • @md.mahedihasan9525
    @md.mahedihasan9525 3 ปีที่แล้ว +1

    And done i have build an client theme watching this tutorial Thank you so much dear.

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

    very helpful video to any one who wants to learn wordpress development

  • @ignitedcms1288
    @ignitedcms1288 5 ปีที่แล้ว +1

    I've had the pleasure or rather displeasure of working with woocommerce, and there's a hell of a lot of junk to wade through to stylize it. Still better than magento though! Great tutorial though, I personally would have left out the basic home / about pages etc as you've covered that in the other videos. I thought about writing my own small custom e-commerce plugin, but then there's the backend to completely style. That being said this is one of the best 'english' woocommerce tuts on youtube so far.

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

    Fantastic, great tutorial. Very simple and understanding. I appreciate your efforts. Thanks!!!

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

    Thanks for creating this tutorial!! This is exactly what I was looking for. It's really comprehensive and I've learnt so much from it. :)

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

      Thank you very much :)

  • @theman7050
    @theman7050 2 ปีที่แล้ว

    You are the king of WP IMHO

  • @eunsoolee4106
    @eunsoolee4106 10 หลายเดือนก่อน

    Thank you very much! all tutorials are all I really needed. excellent specific .. really great!! appreciate you all!!

  • @Sheliss_Elleness
    @Sheliss_Elleness 5 ปีที่แล้ว +4

    The guide that I really need right now, thanks!

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

      You're welcome :) Good luck

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

    Excellent Tutorial. Waiting for part 2

  • @md.mahedihasan9525
    @md.mahedihasan9525 3 ปีที่แล้ว

    Love this tutorial

  • @graytiu2278
    @graytiu2278 5 ปีที่แล้ว +1

    Thank you Sir!!!!! :) Really helpful. Must watch tutorial! The best so far :)

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

    I agree with previous comments, this is an amazing tutorial.

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

      Thanks Dragan appreciate it mate!

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

    Excellent Work Mr. Digital!! Cheers

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

    Good way to start! THANKS =)
    Just another way to tweak the columns issue (for instantce, in 1:52:00, and in 1:56:00) is to overwrite the styles in your custom SASS file, such as:
    .woocommerce-columns,
    .u-columns,
    .col2-set
    {
    @extend .row;
    }
    .col-1,
    .col-2{
    @extend .col-lg-6;
    }
    This way you don't need to mess with the woocommerce files

  • @leogaming1987
    @leogaming1987 5 ปีที่แล้ว +1

    very helpful video...excellent for basic theme from scratch.

  • @tour-du-lich
    @tour-du-lich 4 ปีที่แล้ว

    What a great tutorial. Many thanks!

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

    Excellent tutorial, absolutely great. If you are new to WP or not. Useful no matter your level

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

    Alot of things make sense to me now. I thought alot of it was coded by some genius (maybe in the beginning), but now I see that it is mostly imports and npm. I would have never known. I should have come here when you first uploaded.

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

    Thanks.. . explained simply. Expecting more tutorials on different topics

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

      Sure 👍 More to come soon mate!

  • @jjuuiiccyyjj
    @jjuuiiccyyjj 5 ปีที่แล้ว +3

    amazing tutorial, would love more custom woocomerce theme tutorials if you get a chance to make them

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

    Congrats man - this is excellent!

  • @webdeveler
    @webdeveler ปีที่แล้ว

    Senior Developer looks like this ;)
    Love your tuts.

  • @HasinthaWeragala
    @HasinthaWeragala ปีที่แล้ว

    what a gem of channel. awesome stuff :)

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

    What shall i say, all i have to say is just thank you for this video you are just awesome in fact you are a philanthropist.

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

      Haha, thanks very much. Glad you enjoyed.

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

    Thanks 3000 times sir for this effort which makes my big problem resolve

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

    For your hosts on mac you can simply open your terminal and type sudo nano /etc/hosts then voila enter in your new host and save and exit (shortcuts will be displayed at the bottom of the terminal for you, the exit shortcut is to save too)

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

    Bro, AWESOME! . Keep up with new videos! really helpful, Thanks a lot.

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

    Thank you ! It's really helpful when we start working with WordPress ;)

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

    This is a wonderful tutorial. Only needed some basic info about theme building for woocommerce, but the whole tutorial is great.

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

      Thanks mate. Appreciate it

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

    very great tutorial u have made I not only understood the woo-commerce but I also got how to use web pack very very interesting

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

    i'm from Brazil, excellent tutorial yours

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

    Solid Tutorial. Thank you

  • @webprogramming2707
    @webprogramming2707 2 ปีที่แล้ว

    thank you. Great tut.

  • @ardiankrasniqi7444
    @ardiankrasniqi7444 ปีที่แล้ว

    LEGEND FOR real man good job

  • @noah_franco
    @noah_franco 2 ปีที่แล้ว

    Awesome video! Really helped me understand how WordPress works

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

    Thanks man you help me so much I wish you the best of luck and every success in business.

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

    Lovely sir, thank you very very much for this outstanding tutorial !!!!

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

      You are very welcome!

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

    great tutorial!many thanks.
    subscribed - waiting for another great video woocommerce.

  • @mdstudio8139
    @mdstudio8139 4 ปีที่แล้ว +3

    Mr. Digital, make some long more advanced WordPress tutorial on Udemy. We will buy it. You are the best instructor on WordPress I have seen.

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

    This is phenomenal! Thank you so much!

  • @user-ux1it3jn8k
    @user-ux1it3jn8k 3 ปีที่แล้ว

    It's Brilliant, thank you SO much!

  • @abukhalid5890
    @abukhalid5890 ปีที่แล้ว

    So useful, thanks

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

    Hello from Siberia. Thank you so much

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

    Hi,
    Thank you for your great tutorials

  • @gravity3.8
    @gravity3.8 3 ปีที่แล้ว

    this helps a lot, thanks

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

    Great man, thank you so much, very helpful

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

    Really enjoyed this video.

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

    Amazing tutorial.. Thank you very much.

  • @user-hr2hw2hy8g
    @user-hr2hw2hy8g 3 ปีที่แล้ว

    Thank you very much very usefully and clear

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

    this is a nice tutorial, please, please, we need part 2, but more deeper into woocommerce

  • @arashjavadi3090
    @arashjavadi3090 10 หลายเดือนก่อน

    Amazing tutorial, luoooouved it. Really helped me :)))))

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

    Guess i watched 5 minuets of this and you got yourself a new subscriber ;) thanks, for this great tutorial and specially for the timestamp.

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

      Thanks Poya appreciate it! Cheers

  • @TechMarketer
    @TechMarketer 5 ปีที่แล้ว +4

    You explain everyting in nice and easy way. Great content. Could you create more videos for example: how to create custom plugin in php for woo or how to make some changes in existing plugins? Or something about backend in php usefull for woo or about API and how to connect it. Thank you!

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

    Great tutorial I'm following you step by step and pausing to enter the codes because I'm determined to build a online store without paying a website designer.

  • @postmortemm
    @postmortemm ปีที่แล้ว

    very useful thank you !!!!

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

    Really good work sir!

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

    Very good tutorial, tks!

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

    This is top quality content

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

    Great video!

  • @life-hack7003
    @life-hack7003 4 ปีที่แล้ว

    amazing tutorial keep it up man!

  • @dtheminiature2921
    @dtheminiature2921 ปีที่แล้ว

    I posted a comment earlier where I voiced some critique about you using SCSS and NodeJS(npm) and such. While my opinion still stands I just wanted to say that this tutorial has been really valuable for me and that I appreciate you taking the time to make this video!

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

      Hey mate. Thank you. I know its a bit of a shit tutorial, focusing on stuff that's probably not needed. I'm going to re-do a WooCommerce tutorial that is more focused on hooks and actually getting it working on a blank theme already created. All the best mate

    • @dtheminiature2921
      @dtheminiature2921 ปีที่แล้ว

      @@mrdigitalau Can't wait for it to drop. In the meantime I'm still busy following the WordPress Theme Development From Scratch series which is actually very good and probably the best out there. Once again thanks for putting in the time/work to educate the dev community!

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

      @@mrdigitalau did this get made? 2024 now and struggling to find any tutorial on coding a woocommerce theme from scratch!

  • @Robert-vm9op
    @Robert-vm9op 4 ปีที่แล้ว

    good thank you . great tutorial.

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

    Excellent, learned a lot, thanks !

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

    Thanks for this tutorial, it is very great and it'll help me with e-commerce in wordpress. I like so much your tutorial.

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

      No worries Danillo - you're welcome mate!

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

    Thank you it's very useful

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

    Best video on youtube, please make some more

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

    Very good tutorial

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

    thank you so much for these videos. you helped me a lot!

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

      You're very welcome :)

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

    You are the best you helped me a lot!

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

    Awesome! thanks.

  • @MdMehediHasan-vf6tv
    @MdMehediHasan-vf6tv 3 ปีที่แล้ว

    Thanks. Love from Bangladesh.

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

      How you setup webpack? I can't do it. I'm from Bangladesh.

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

    Really professional. I'm not even trying to make my own Wordpress theme but I'm hooked nonetheless XD

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

      Thanks heaps, much appreciated!

  • @JinSheng1990
    @JinSheng1990 ปีที่แล้ว

    it's great video, thanks so much sir!

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

    Awesome helps a lot for learning thank you so much❤

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

      You're welcome Sir

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

    Thank you for your video

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

    Thanks, you are the best:)

  • @JL-sb4iq
    @JL-sb4iq 2 ปีที่แล้ว +1

    Beast, thank you a lot!

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

    Lot a Thank you !!!

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

    Thanx. It was really helpful..

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

    Great Video

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

    I've been programming for a decade now, mostly software tho, done a few years of web dev too but not with WordPress, this is why I'm here. It helped me a LOT. You seem extremely experienced. But it kinda bothers me your indentation, 8 spaces indentation? but the worst part is that you're not even consistent, I saw you do 12 and 4 spaces indentation too. This and the closing of the php tag to just open another one in the next line made me cry a little bit. I just think it's much cleaner like this...
    instead of this
    But maybe you did like that because you were thinking ahead and knew you would put some HTML in between those bad boys(which I don't really know if you did, because I skipped the stuff I already knew).
    Regardless, great video, appreciate it.

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

    AWESOME!!! Thanks

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

      You're welcome Hadi!

  • @christopherpink842
    @christopherpink842 2 ปีที่แล้ว

    THANK YOU!!!!!!!!!!!!!!!!!!

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

    It's really grate.

  • @iftikharahmed926
    @iftikharahmed926 5 ปีที่แล้ว +1

    This is an outstanding tutorial, covering a lot of necessary details. I have a confusion and request you to please guide me. Please let me know, how to install nodejs and laravel on hosting server? Are we allowed to install such softwares on servers and which tool or tools do we use ? Your answer will be highly appreciated. Thanks

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

    PID(s) are processus ID given by windows to each service and program you start, the same PID you'll see in task manager

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

      Thanks mate. Appreciate it :)

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

    so far so good!! excited to see how far i get. Im at the point where ive pasted the webpack.mix.js
    yours is .sass
    mine is .postCss
    i hope that doesnt matter 😅