Title: Default Coin Selection
Last modified: April 26, 2020

---

# Default Coin Selection

 *  [daviidleon](https://wordpress.org/support/users/daviidleon/)
 * (@daviidleon)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/default-coin-selection/)
 * Hello, i love your plugin, just have a tiny question, i want in certain pages
   to pre-select certain coins from the lists of the forms you give us, just for
   user-friendly purpose so they don’t have to select them.
    I know you use knockout.
   js so is just a script what i need to add to certain pages, but i can’t figure
   out how, because i dont know the coins ID
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-coin-selection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * (@dashedslug)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/default-coin-selection/#post-12732740)
 * Hello,
 * The coin that is selected by default is the one that you select in _Wallets_ 
   → _Frontend Settings_ → _UI/display settings_ → _Default coin_. This applies 
   throughout your site.
 * You can also override this selection in certain pages. In the page editor for
   any page, scroll to the bottom, and you will find a metabox titled “Bitcoin and
   Altcoin Wallets default coin”.
 * On the frontend, the plugin applies your selection by running the following JavaScript
   code. I am mentioning this because you may provide additional logic, by binding
   to the `wallets_ready` bubbling event in the same way. [https://github.com/dashed-slug/wallets/blob/5.0.2/assets/scripts/wallets-ko.js#L1022-L1029](https://github.com/dashed-slug/wallets/blob/5.0.2/assets/scripts/wallets-ko.js#L1022-L1029)
   You can get access to the wallets viewModel via `wp.wallets.viewModels.wallets`
   from any variable scope.
 * Finally, if you were to use the static UIs (rather than dynamic ones), then you
   can pass the coin as an attribute, and the UI’s HTML will be rendered for that
   coin only (hence static). Static UIs are discussed in the accompanying documentation.
   For example: `[wallets_balance]` would show you a box with a dropdown, where 
   you can select a coin and display its balance, but `[wallets_balance template
   ="static" coin="BTC"]` would display the current user’s BTC balance only. It’s
   up to you to see if you find static templates more useful in your case.
 * Hope this answers your question.
 * with regards

Viewing 1 replies (of 1 total)

The topic ‘Default Coin Selection’ is closed to new replies.

 * ![](https://ps.w.org/wallets/assets/icon-256x256.png?rev=1570088)
 * [Bitcoin and Altcoin Wallets](https://wordpress.org/plugins/wallets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wallets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wallets/)
 * [Active Topics](https://wordpress.org/support/plugin/wallets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wallets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wallets/reviews/)

## Tags

 * [dropdown](https://wordpress.org/support/topic-tag/dropdown/)
 * [frontend](https://wordpress.org/support/topic-tag/frontend/)
 * [ui](https://wordpress.org/support/topic-tag/ui/)

 * 1 reply
 * 2 participants
 * Last reply from: [dashed-slug.net](https://wordpress.org/support/users/dashedslug/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/default-coin-selection/#post-12732740)
 * Status: not resolved