MyBB Community Forums

Full Version: select2 css
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Why is the CSS for select2 not built into the themes? It's a pain having to edit the CSS file when the rest are in the ACP...

jscripts/select2/select2.css

For those of you who would like to include a modified select2 with your themes so users don't have to replace their factory jscripts you can do it like this... 


private_send_autocomplete

<link rel="stylesheet" href="{$mybb->settings['bburl']}/images/YOURFOLDER/select2/select2.css?ver=1806" />

Apply same idea to the following templates:
  • managegroup_adduser
  • managegroup_inviteuser
  • memberlist
  • memberlist_search
  • member_register_referrer
  • modcp_banuser
  • modcp_finduser
  • modcp_warninglogs
  • private_advanced_search
  • private_send_autocompletesearch
  • search
  • usercp_editlists
To make your file easier...use the search/replace feature Smile. The default code is the following:
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css?ver=1806" />


Move the files within jscripts/select2 to images/YOURFOLDER/select2 but leave the folder and the js file.
I've been wondering this myself, it's extremely annoying.
Yep, no idea why this decision was made. We'll have to see what we can do about changing it.