PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multisite - Site Address Issue

  1. johne
    Member

    Under the Multisite Options you can map the Site Address when the user registers...

    On the form itself can I write in the first part of the URL ie http://www.example.com/ (then the form box), so the user just types in the last part of the URL instead of the whole url?

    This is hard to explain but right now http://www.example.com/sitename has to be typed when "sitename" would be easier.

    This is confusing on the users part

    Posted 12 years ago on Friday June 10, 2011 | Permalink
  2. Hey Johne,

    As far as validation is concerned, you should not have to enter the full URL. Entering the full URL should actually generate a validation error.

    Here is a snippet that will allow you to do something like this: http://grab.by/akJ0

    Paste the snippet below in your theme's functions.php file. Be sure to update the form ID and URL where specified in the snippet.

    http://pastie.org/2051378

    The last step is to add the class "add-site-url" to the CSS Class property of the field you are using for the Site Name.

    Posted 12 years ago on Saturday June 11, 2011 | Permalink
  3. johne
    Member

    thanks for the response! This is what I was looking for and will try it out this weekend!

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink