register button disappear once anonymous becomes an user

Home Forums Legacy Support Support queries Styling issues register button disappear once anonymous becomes an user

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12044
    duy87
    Spectator
    Hello, 1) Can you send me the code that would solve this? As you said in themeforest. 2) Also where can I change what will show in the register page? There are few fields that are necessary to fill in so I want to remove them. Thank you.
    #12156
    Anshuman Sahu
    Keymaster
    Please add the given code in your wplms-customizer.php file in wplms customizer plugin at the bottom before " ?>" add_action ('wp_footer','wplms_hide_register'); function wplms_hide_register(){  if(!is_user_logged_in()){    echo '<style>.registerhide{       display:none;    }</style>'; } } Then please use the button shortcode and add this class in the classes sectionregisterhide 2. You can remove them from wp-admin -> users -> profile fields .
    #12234
    duy87
    Spectator
      That code disappears for non loged in users... I want it to disappear once anonymous person becomes an loged in user.. Please test it if you want. website: www.kurzon.cz your login: Author Password: Author4321 in this page is I am testing the buttons: http://www.kurzon.cz/stat-se-studentem/ the buttons will be showing there once you log in.
    #12248
    Anshuman Sahu
    Keymaster
    Hi fixed the issue at your site please check and confirm .
    #12251
    duy87
    Spectator
    Hello, may I ask how? Just to know how to fix it next time if it happens again. Thank you very much for this.
    #12311
    Anshuman Sahu
    Keymaster
    There was a small mistake in code modified the above code to : add_action ('wp_footer','wplms_hide_register');
    function wplms_hide_register(){
     if(is_user_logged_in()){
       echo '<style>.registerhide{
          display:none;
       }</style>';
    }
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘register button disappear once anonymous becomes an user’ is closed to new replies.