public function widget($args, $instance) {
    extract( $args );
    $title = apply_filters( 'widget_title', $instance['title'] );

    /* Display the markup before the widget. */
    echo $args['before_widget'];

    if ( ! empty( $instance['title'] ) ) {
        echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
    }

     ?>
            <div class="subscribe">
                <div class="newsletter">
                    <h2><?php _e('MARKETING TIPS','text_domain'); ?></h2>
                    <p><?php _e('Latest Heading deliver to you','text_domain'); ?></p>
                    <div class="form">
                        <input type="text" name="subscribe" value="" class="input"><a href="#" class="subscribtn"> <i class="fa fa-envelope" aria-hidden="true"></i> <?php _e('Subscribe','text_domain'); ?></a>
                    </div>
                </div>
        </div>

    <?php
    /* Display the markup after the widget. */
    echo $after_widget;
}

Above is my widget function. Previously everything was working fine, but now in the backend all though when I change entries the widget is saved, but in the front end the title doesn’t change and remains the same? Can someone help me to understand what error I have committed that has caused this problem? Please let me know If I have to add some another input.

Read more here: Widget Function not displaying the Title


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: