How to Edit WordPress Code (HTML, CSS, PHP, Javascript)

💪 One of the most powerful features of a WordPress website is the ability to edit the WordPress source code. Learning how to edit HTML, CSS, Javascript or PHP code in WordPress – using the WordPress code editor or 3rd party tools – is easier than you may think. This video we go over how to use the block editor, classic editor, widgets, CSS customizer, plugin, WordPress code editor, FTP AND your host = all to edit WordPress code!

⏱️ Timestamps:
00:00 Intro
00:33 Safety tips
00:55 Editing code with the Block Editor
01:42 Editing code with the Classic Editor
02:09 Editing code in widgets
02:40 Editing code with the CSS Customizer
03:50 Editing code with a plugin
05:12 Editing code with the WordPress code editor
06:30 Editing code with FTP
09:34 Editing code with your hosts file manager

👨‍💻 Additional resources:
For taking backups:
For using a VPN:
For adding a Child Theme:
For using a text editor:
A plugin for editing headers and footers:

Plugins for editing CSS:

🧠 Want to become a WordPress Buff?
Related blog posts:
Related article:
Speed and security eBooks:
WordPress webinars:

🆘 Need more help?
24/7 website edits (unlimited small website edits, no time limits or caps):
24/7 WordPress care plans for serious website owners:
White-label website management for WordPress professionals:
Customer stories and case studies:
Book a private discovery call:

🤝 Want to team up?
Join our affiliate program (and earn 10% recurring lifetime commissions):
Sell your WordPress business:
Grab some WP Buffs merch:

🐦 Social

📝 Affiliate disclosure:
Looking for WordPress hosting? This video features Siteground!
We use Rev for all our transcripts and captions. Try it yourself and get $10 off your first order by using our link!

    25 replies to "How to Edit WordPress Code (HTML, CSS, PHP, Javascript)"

    • Waad Alharbi

      hi I have question I need to add the IF and the pass statement and I don't know how

    • tronikit 22

      Thaaaaaaaaaaaaanks for you❤❤❤❤

    • Jabed Khan

      Thanks a million 😀

    • Ray Xi

      congrats on 1k likes!

    • NazAal

      Sorry, but they have changed it. Probably because they wanna sell tha plugin:(

    • GoldenToothBrush

      Could someone explain more specifically why I would need a VPN?

      Thanks in advance.

    • Samuel Zev

      Can we create the entire content of the site from a blank coding page?


      Thanks 😊


      Fx how to change color off the background in the ftp fil how to find the ret fil? ?

    • Katia M.

      Suscribed for seeing more “How to’s”

    • Elecom

      what i can do add plug in?

    • Elecom

      Hello i purchase on personal plan on wordpress but no option to edit code how can i do?

    • KD voice

      Thanku sister

    • Jonathan Doda

      Ugh, this is the best tutorial I've seen in ages. Quality audio and presentation. Concise, easy to follow and very well-paced. And TIMESTAMPS. I love you.


      Thank you I just crashed my wordpress website when I wanted to add dark mode code to the website please what can I do to restore it and how to add they code to the website

    • Karen Kefauver

      I'm obsessed with figuring out. how to make the Instagram social icon have the correct gradient… So .. I can't find the CSS code and when i do find it (if you guys have it) I don't understand which chunks of code go in which block.. arg.

    • vijay gupta

      How edit html in iphone

    • Shady Bahouth

      Clear, straightforward and to the point , thank you so much for sharing this

    • Gloria

      i use the block editor and every time i edit the block with correct HTML code it give me a error that the block is not valid. do you know why this could happen?

    • Joan Dzimwasha

      very helpful, thank you

    • 文圖歌投資

      useful. how to add google analytics to the website footer?

    • sohail asghar

      Hi thanks for the best tutorial

    • Daily meow

      Hey happy holidays, this is wordpress .org, is it similar for wordpress .com ?

    • TryTrueSolutions

      Very useful for beginner, Thanks

    • 9ja Xclusive

      this video save me from embarrassment…thank you…..

Leave a Reply

Your email address will not be published.