Create custom widget in wordpress

By February 15, 2017 WordPress No Comments
custom widget in wordpress

Add custom widget in WordPress

You can create a new widget  according to your need, anywhere in the website in WordPress by adding code to one of two places.

Add below code in  your functions.php file of active active.

and second add the this code in your header, sidebar or any other file where you want to call that new widget.

Now go to Appearance » Widgets, here you can see you have created a new widget area, you can now put or drop any element from left panel.

About Vijay Dhanvai

A passionate blogger by heart and mind, I have been working in this field for 7 years now. A WordPress Professional, web developer and designer who intends to guide his readers about Web Design, WordPress, Blogging, Web Development, and more.

Leave a Reply