I am trying to make radio buttons look better, and got a piece of code from getbootstrap.com, how can I set up the following code with current shortcode? Thank you!
<div class="custom-controls-stacked">
<label class="custom-control custom-radio">
<input id="radioStacked3" name="radio-stacked" type="radio" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">Toggle this custom radio</span>
</label>
<label class="custom-control custom-radio">
<input id="radioStacked4" name="radio-stacked" type="radio" class="custom-control-input">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">Or toggle this other custom radio</span>
</label>
</div>
current form-group shortcode below
[wpml-string context="wpv-views"]Locations[/wpml-string]
[wpv-control-post-taxonomy taxonomy="location" type="radios" default_label="All locations" url_param="wpv-location" output="legacy"]
Thank you so much!
Dear Jeffrey,
There isn't exact same feature with shortcode [wpv-control-post-taxonomy], I suggest you try these:
Edit the shortcode [wpv-control-post-taxonomy ...] as below:
[wpv-control-post-taxonomy taxonomy="location" type="radios" default_label="All locations" url_param="wpv-location" class="custom-control-input" label_class="custom-control custom-radio"]
See screenshot: locations.JPG
Then you will get the HTML codes like this:
locations
<div class="radio">
<label for="location-" class="custom-control custom-radio"><input id="location-" class="js-wpv-filter-trigger custom-control-input" name="wpv-location" type="radio" value="0" checked="checked">default option</label>
</div>
But there isn't HTML codes as you mentioned above:
<span class="custom-control-indicator"></span>
<span class="custom-control-description">Or toggle this other custom radio</span>
</label>
More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-taxonomy