Posts on Sidebar only

Looks like the site you mentioned used a Text Widget. Did you try to add a new image to the media library and then add a text widget on your sidebar? Just copy the full path of the image you uploaded and then add a link surrounding the image. Steps: Add an image in the … Read more

How do you add a widget to the side of a page

To register a sidebar widget, head over to Appearance > Editor and select the function.php from the right side. Then copy and paste this code at the end of your function.php file. function custom_register_widgets() { register_sidebar( array ( ‘name’ => __( ‘Sidebar widget’), ‘id’ => ‘sidebar-custom’, ‘description’ => __( ‘Widgets dragged here will appear in … Read more

How to implement widgets error output with data validation?

Try this: class My_Widget extends WP_Widget { /** * Sets up the widgets name etc */ public function __construct() { $widget_ops = array( ‘classname’ => ‘my_widget’, ‘description’ => ‘My Widget is awesome’, ); parent::__construct(‘my_widget’, ‘My Widget’, $widget_ops); } /** * Outputs the content of the widget * * @param array $args * @param array $instance … Read more