We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27302
    • 154 Posts
    I’m currently trying to style the various forms for WebLoginPE, but have hit upon a snag. I can’t for the life of me find out how to change the html for the country selection dropdown. I can only find the list of countries in the countryCodes.php file. But this does not actually contain the html I want to change.

    Basically I just want to change
    <label for="wlpeUserProfileCountry" id="wlpeUserProfileCountryLabel">Country


    to

    <label for="wlpeUserProfileCountry" id="wlpeUserProfileCountryLabel">Country</label>
    and to delete the existing </label> that occurs after the country list currently.

    I’ve looked in all the files in the webloginpe snippet folder, but can’t find the html I need to change anywhere.
      • 13736
      • 345 Posts
      That’s interesting. I just had to figure this out today.

      In the webloginpe.class.php file there are three lines that auto generate label markup.

      Line 1420
      Line 1483
      Line 1515

      Then down further

      Line 1849
      Line 1909
      Line 1941

      Basicly you are looking for a line similar to..

      $ph .= '<label for="'.$DOMid.'" id="'.$DOMid.'Label">'.$label."\n";


      and then a line further down that closes the label tag.

      $ph .= '</label>'."\n";


      Just move the line closing the tag up directly under the line that opens it.