Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

Feature Request: Utilize Select2 for dropdowns on admin page

$
0
0

Replies: 0

I have a FeedPress account with nearly 100 (and counting) feeds in it. Having the dropdowns utilizing Select2 would greatly improve the experience when looking for a specific feed in the settings for this plugin.

The plugin could have this included on the admin page:


// Enhance the dropdown select elements with Select2
wp_enqueue_style( 'select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.12/css/select2.min.css', '', '', 'all' );
wp_enqueue_script('select2', '//cdnjs.cloudflare.com/ajax/libs/select2/4.0.12/js/select2.min.js', array( 'jquery'), '', true);

Then having the following as JS ran on the page:


jQuery(document).ready(function($){
	// Enhance the dropdown select elements with Select2
	$('.wrap select').select2();
});

Very quick update to make and should greatly improve the experience of working with this plugin on multiple sites that share a common FeedPress account, have a site with complex FeedPress utilization, etc. Also, this code above loads Select2 from CDNJS for optimal delivery, but it could load a local copy instead if that’s preferred for any reason.

Just wanted to put the request out there here since I didn’t really see this plugin on GitHub, the developer having contact info, etc. to share this through other means.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>