Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter smoore10

    (@smoore10)

    Thanks Jeff, I tried using your code above and it does the same thing, but that was a stupid mistake by not using action, and I kept your pass by reference, etc.

    I did find a solution though. My registration form was not having this problem, so after looking into it I had put the same validation inside the ‘user_register’ action. So for the profile I did the same for ‘personal_options_update’ and ‘edit_user_profile_update’. This prevented it from saving if it was missing (there’s actually many other fields not just ‘state’ which is why there is a nested if):

    function tml_edit_user_profile_update( $user_id ) {
         if ( current_user_can('edit_user',$user_id) ) {
             if ( !empty( $_POST['state'] ) )
               update_user_meta( $user_id, 'state', $_POST['state'] );
         }
     }
    add_action('personal_options_update', 'tml_edit_user_profile_update');
    add_action('edit_user_profile_update', 'tml_edit_user_profile_update');

    Thanks

    p.s. Thanks for working hard to get the beta version out for 6.4.1, the password problem has been affecting me as well.

    Thread Starter smoore10

    (@smoore10)

    Solution:

    Applying the width attribute to the .s1 class overall instead of .col-3cm .s1 brought the toggle buttons back. So now this is the css used in my child-theme’s style.css file to reduce the primary (left) sidebar width and maintain responsiveness.

    /* reduce primary sidebar width */
    .col-3cm .main-inner {
    	background-position: -80px 0;
    	padding-left: 260px;
    }
    .col-3cm .s1 {
    	margin-left: -260px;
    }
    .s1 {
    	width: 260px;
    }
    Thread Starter smoore10

    (@smoore10)

    Solution:

    The responsive sidebar background uses a repeating image. As soon as alx_styles() is switched to look for responsive.css in the child theme, the sidebar image URL also looks in the child theme, where the image does not exist which is why the background appears white. To fix this I just copied the entire Hueman/img directory into my child theme and now everything works as expected.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)