HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Create a Custom WordPress Widget

58,228 views October 31, 2018 2:21

Watch on YouTube
ChannelWPBeginner - WordPress Tutorials

Description from the creator

Are you wanting to create your own custom widget for WordPress? Widgets are tools to let you add elements to any sidebar or widget ready area of your website. In this video we will show you how to create a custom WordPress widget.

Text version of this tutorial
wpbeginner.com/wp-tutorials/how-to-create-a-cus…

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook
facebook.com/wpbeginner

Follow us on Twitter
twitter.com/wpbeginner

Checkout our website for more WordPress Tutorials
wpbeginner.com

There are two methods to do this you could either create a site specific plugin or paste the code in your theme's functions.php.

If you edit your theme's functions.php then you will lose the widget when you change themes so keep this in mind when making these changes.

If you do not know how to use FTP you would want to take a look at our article:

wpbeginner.com/beginners-guide/how-to-use-ftp-t…

You will want to download your theme's functions.php from the wp-content/themes area inside the folder with the name of your theme.

Download and add the code from our written article to the functions.php file and upload it back to your theme's folder.

You should now have a widget that you can add under Appearance, Widgets to your site.

About this tutorial

WPBeginner - WordPress Tutorials published this 2:21 video tutorial on October 31, 2018. It has been watched 58,228 times on YouTube.

Duration
2:21
Published
October 31, 2018
Views
58,228
Likes
136

Tags

Share

This tutorial in other languages