Embed a list of regions.

Step 1: Configuration

Use the filters below to customize the regions listed in the widget. It will update the above "query" field.
Some custom query params you can use are "parent=#" and "rids=#,#,#". Parent will show all sub-regions for that region, rids will show just the regions you pass the comma seperated list for.

Widget Preview

30,140

Sorting

Activity Type Supported

Primary Activity Type

Difficulty

Location

Country

Driving Distance

Misc

reset

Step 3: Get the code

If including multiple Trailforks widgets on the same page, the javascript portion below only needs to be included ONCE per page!

Advanced

  1. You can optionally provide your own custom CSS file to custom style the widget to your desire.
    Add the following code to the widgets javascript, replacing URL_TO_YOUR_CSS_FILE: var style = "URL_TO_YOUR_CSS_FILE";
    You can set the widget width to 100% to have the widget height responsively adjust (must use the JS code, not iframe).
  2. You can include the widget source directly into your page using PHP CURL or a Javascript Ajax call.
    The direct URL to the widget source is: https://www.trailforks.com/widgets/region_list/
    the following are the URL GET paramaters you can pass: width, rows, noheader. Use the data-* in the "get the code" box above for reference.