Skip to main content

Posts

Showing posts with the label Widget

Create Custom WordPress Widget from Scratch

WordPress Widgets is used to add content and features to Sidebar. Some default widgets are come with the WordPress (Search, Categories, Tag Cloud etc.). We can also create custom widgets as per our needs. Today we will learn how to create custom WordPress widgets. For testing purpose we will create an Author Profile Widget. Author Widget would be used to display author information (Picture, Name, Introduction, Location, and Email) at the sidebar. Follow the step by step instructions given below.  Create a folder named widgets into the current theme directory.  Create a PHP file named author-widget.php .  Provide widget details under the comment tags (It is not mandatory). /**  * Plugin Name: Author Widget  * Plugin URI: create-custom-wordpress-widget-from-scratch  * Description: Provides a widget for display blog author information  * Version: 1.0  * Au...