Found the solution, Finally got it to work.Use Mustache or Handlebars template system instead of underscore.js template system. Some how wordpress widget environment is not getting along with underscore template system.
Related Posts:
- Elegantly using JavaScript on widget admin forms
- Executing Javascript When a Widget is Added in the Backend
- Loading scripts only if a particular shortcode or widget is present
- Open media frame and select an attachment
- How to refresh Theme Customizer after change color inside wpColorPicker?
- What type of template are WP media-modal’s templates?
- Run JS after widget settings are saved?
- AJAX Contact Form Issue
- Widget code is not working on WordPress.com Hosted Blogs
- Include chat (HTML, js, css) in all pages of WordPress
- How to determine the number of widgets contained in a sidebar via customizer JS
- jQuery UI inside widget on admin page
- WP_enqueue_script() loads them always in wp_footer()?
- How do I pass the id of my widget to javascript in the form function?
- Access Customizer widget instance form
- Unable to load “wpColorPicker” on theme customize page
- Widget outputting JS as plain text
- Simple SCript Not Displayed in WIdth
- Loading scripts only if a particular shortcode or widget is present
- Widget Admin page and Javascript enqueuing
- List.js inside WordPress widget
- Add text to Text Widget using Javascript
- Why does my $instance within a custom widget return empty (undefined index)?
- How to create sidebar from “scratch”?
- Display current tag archive’s name and description in sidebar
- How to display author meta in a sidebar widget
- Title not Emptying in a Widget
- Widget Registration Problem
- How do I add after the tag in WordPress widget?
- Reload widget with AJAX
- Function for widget titles
- Is it possible to dynamically output the name of the widgets?
- How to customize WordPress dashboard for different users?
- Creating a simple button inside of a widget
- A checkbox Option for description in Widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- wp_list_widget_controls() undefined
- My widgets do not save
- Custom archive widget drop down menu
- How to move widget area to another section in WordPress Customizer
- How to prevent Widget from echoing to wrong position in DOM
- Search box displaying just title → Default WordPress Widget for Search Box
- Need two sidebar (right and left)in Twenty Seven theme
- I accidentally added a widget area called sidebar 1
- Get a list of all Widgets registered in WordPress admin widgets-area
- Reposition the widget sidebar in Appearance->Widgets
- Hiding the widget meta box in the Appearance->Widget screen
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- Fatal Error (Call to a member function… ) on production site, but not development site
- wp_registered_widgets doesn’t contains my widgets
- Show modal only to some roles
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- How to get widget content in WordPress based on it’s ID?
- How to implement widgets error output with data validation?
- How can I write this code snippet so that it echo’s the response when submitting empty fields?
- The WP_Widget class seems to run many times on a page load
- What is the difference between widget object and widget instance?
- How do you add a widget to the side of a page
- wp_enqueue_media(); in multiple widgets
- Force update widget customizer using js
- Apply two different styles to Wiget Titles along with a decorative line
- Prevent widgets from disappearing when swtiching from parent to child theme
- Add Control in Widgets Sub-Panel in Customizer
- How to get sidebar widgets in leftsidebar template
- How to get number of posts in same category as current post?
- How to show Widget in Content Bottom part on home page in twenty sixteen theme
- Stop ‘extends WP_Widget’ displaying the (backend) form, frontend?
- How Can I Replicate & Register a Widget from the Child Theme
- get_post_class not working properly
- Is it good practice to change certain page appearance through a widget?
- How to retrieve category ID’s from widget settings?
- how to get value of a select box in custom widget wordpress
- How to update the options table for a widget
- Using the_widget Multiple Times
- Recent Posts Widget URL / Domain change
- conditional widget title
- New Custom Widget Call a Different Widget Function
- My plugin works in home page, but doesn’t work in post page
- Add Social Media icon widget to customizer
- Widget text color change
- Widget settings disappear after refreshing page
- Conditionally Load a Script if a Certain Widget is Shown on a Page
- How to check widget-cpt meta and display its custom css in the head?
- Handling dozens of sidebars
- Use customizer or sidebar for header settings?
- Widget to embed youtube video
- How to add WooCommerce Add to Cart button in widget?
- Where to add a widget class?
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- Script in sidebar blocks other widget’s load
- Make a widget to my footer
- Create a setting at backend,to print only selected categries at front-end
- How to change text of a widget depend on condition?
- Slider from different widgets
- Does current page contain widget or sidebar
- widgets_init actions not fired from functions.php’s child theme
- Hook into backbone to add js to wp-admin -> media library?
- Adding a trinket.io widget to a post
- Nonce and widget
- Widgets Opening In New Window – Unwanted