If you build a responsive theme it is important that you know how to make YouTube embeds responsive in WordPress. There are a lot of solutions out there for this but most of them use a plugin that either makes you enter your videos through a shortcode or wraps all of your Iframes in a responsive wrapper. How about we take a little time to build it into our theme so that we aren’t cluttering our site up with more plugins. It is actually really simply!
So you have built a beautifully responsive WordPress theme that works on all devices. Then you or your client adds a YouTube video into their content…ya know for better SEO…and it shoots out the right side of the screen! Now it looks completely broken. You, as a detail oriented web developer, want to make sure that any YouTube video will be responsive inside your theme. But you also know the importance of keeping your site as lightweight as possible so we don’t want to just go add ANOTHER plugin.
Have you every wondered why you should build WordPress themes from scratch? Well, I have compiled 10 reasons why I build WordPress themes from scratch as opposed to hacking another theme. This isn’t going to be one of those articles that bashes the use of professional themes or child theming. Most people start out using free or paid themes to develop with, because it helps get us used to how WordPress themes work and it can speed up the dev process. I wouldn’t be where I am today if I hadn’t hacked apart a theme or two.
When Should You Buy Or Hack A Theme?
There are times that you should purchase a theme or grab a free one if it suites your needs. If you’re a business owner and you just started the business, there usually isn’t a budget for a website. If you happen to be apart of a non-profit organization that has just started or all of it’s funding is used elsewhere, grab a $40 theme and add your content. There are some really great WordPress theme developers out there creating beautifully designed and highly functional templates.
When Should You Build WordPress Themes From Scratch?
If you are a developer and you have been hacking themes for a while, you should start building themes from scratch. It is a great learning experience and it will take your skill level way up. If you are a business owner and have a website already, I would recommend looking into a developer that can build you a custom solution. If your website is looking old, isn’t working for you rather against you, you aren’t being found on search engines, or all of the above you should upgrade. If you fit into any of these examples, this article is for you!