This is very helpful on all sites. We do this even if we built the theme to keep the templates with the plugin.
@faze75742 жыл бұрын
that was awesome! save me hours of searching. thank you man, awesome job. ♥
@slow_start2 жыл бұрын
Very helpful. Thank you!
@PetrVr Жыл бұрын
Saved ton of googling. Thank you!
@jherbison11 ай бұрын
Awesome! Thank you for watching and commenting.
@paulcodes2 жыл бұрын
Thanks for posting this. Perfect timing as well. A client just asked me if I could build them some landing page templates. :D
@jherbison2 жыл бұрын
Nice.. The great thing is, it really doesn't even have to connect to WordPress. It can be a fully stand alone html file. I saw your channel and subscribed.....
@paulcodes2 жыл бұрын
@@jherbison Too kind! I haven't posted in a while. Technically I can just add HTML pages directly into the files but the client wants to be able to create their own and they have no coding experience. I like your idea with the plug in but I suppose I'd have to add some custom fields. I'm curious... Without making you feel like tech support lol... how would you approach that?
@jherbison2 жыл бұрын
No problem. As much as I hate to say it, a page builder would be best. I really don’t like them, but that would be the easiest solution. Gutenberg gives some flexibility but not much.
@paulcodes2 жыл бұрын
et tu@@jherbison blasphemy! LOL You are right, and the more I think about it...I think the cost of coding up something custom would be pointless when there are off the shelf solutions. I should create a new channel "How to waste a bunch of time as a developer"
@jherbison2 жыл бұрын
I could contribute to that channel for sure! I have spent my fare share of wasting coding time.
@eduardpocnet1274 Жыл бұрын
Amazing tutorial! Thank you
@jherbison Жыл бұрын
You’re welcome. Thank you for watching and commenting.
@user-ly6ws7cz7n2 жыл бұрын
Thank's for video. I want to learn do my own unique templates and plugins wordpress. Could you do lessons about development plugins with connection front-end data on template layer and front-end admin data panel layer like an example plugin development
@jherbison2 жыл бұрын
Thank you for commenting.. I have made several videos that I think meet that criteria. Unless I am missing something. More details could help too.
@pabloeduardoibanez2 жыл бұрын
Come on Joshua you are giving away all the goods! Indeed this is very helpful just because you can now work on a plugin to integrate all kinds of functionalities to any site without upsetting the theme, the magic is inside the plugin. It allows you also to have better file organization and structure. It is always great to see your work! I wonder how come you don't use vs code?
@pabloeduardoibanez2 жыл бұрын
BTY I like this JH 2022 version that its posting videos on more regular basis. When I started coding again (I stopped like for 10 years) I will always watch your videos and now here are you again posting again! Great! Congrats! Carry on!
@jherbison2 жыл бұрын
Awesome.. Thank you.
@jherbison2 жыл бұрын
Thank you.. Not a huge fan of anything Microsoft... I do use VS code when I am on my Windows machine, but that is only to update windows software that I have written or if a client wants a windows desktop application (which these days is very rare... Thank GOD!). Sublime Text 3 is very light weight and runs great on my MacBook Pro and My Mac Mini.. All my new videos are done using my Mac Mini. Thank you for watching and commenting..
@alex-68549 ай бұрын
very useful , tnx
@jherbison9 ай бұрын
Awesome.. Thank you for watching and commenting.
@aogunnaike2 жыл бұрын
This is very helpful thanks alot, God bless you more. Is it possible to share your dev setup as I'm getting a MacBook soon and would love to use your setup especially the way u same and files are updated in the browser, cheers 🥂
@jherbison2 жыл бұрын
Thank you. I was thinking about making a video about my setup! I will see if I can get it done tomorrow.
@aogunnaike2 жыл бұрын
Thanks alot, I would really appreciate it
@jherbison2 жыл бұрын
No problem
@klaylton2 жыл бұрын
Thank you!
@monsieurrado2 жыл бұрын
Thank you ! Merci :)
@PolSenserrich2 жыл бұрын
I don't understand why, but as simple as it seems, turned into a nightmare till I found that my return $template variable had to be unique. Different thant $template. Then things started working. I messed many hours with it, so I hope my comment can help someone, or please, can you give me a comment why it was not working for me? Thanks for your content. Your way of explaining things, is really great.
@jeffersoncarvalho2566Ай бұрын
How to make this in a block theme. The templates are in html on the theme, in the templates folder. How to add a template via plugin?
@manishbarik2267 Жыл бұрын
Thanks. It works with both pages and posts. But the template is not showing for custom post types.
@BrockAtkinson Жыл бұрын
You need to replace the text to match the post type slug, e.g. add_filter( "theme_page_templates" ) becomes "theme_event_templates" if your custom post type is an "event".