Skip to main content

Adding Countries Input In User Registration

The Country option allows users to select the country that they represent upon registration.

This is how it looks in the user's Profile.

Add the Countries Input

To add Countries option in the user registration page:

  1. Navigate to the theme footer configuration which is located in Admin Panel > Config > Theme.

  2. Copy the Javascript code below and paste it in the theme footer configuration text box.

    Javascript - Countries Script

  3. Scroll down and click "Update".

  4. To check if it works, navigate to the registration page of your CTFd website. For example, <subdomain>.ctfd.io/register or <custom domain>/register.