/** * Class WPDocs_New_Widget * https://github.com/KingPixil/wing/tree/master/src */ class Three_Columns extends WP_Widget { function __construct() { // Instantiate the parent object. parent::__construct( false, __( 'Three Columns', 'textdomain' ), array( 'description' => __( 'Row with three resizable columns', 'textdomain' ) ) ); } function widget( $args, $instance ) { echo $args['before_widget']; $columns = ''; for ($x = 1; $x <= 3; $x++) { $columns .= '
The column widths should add up to 12.
To use only two columns, add the first two columns to 12 and leave the third Text area empty.