• Resolved selenasmith

    (@selenasmith)


    Is it possible to change the CSS class of the “Update” button on the Edit Profile form? I’d like to use Bootstrap styling (i.e., “btn btn-primary”). I know I can do that via jQuery but I prefer to change it via the plugin settings if at all possible.

    Thanks!
    Selena Smith

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @selenasmith,

    We do not have an option for this, but you can add another class using some custom code:

    add_filter( 'wppb_edit_profile_submit_class', 'wppbc_add_class_to_submit_button' );
    function wppbc_add_class_to_submit_button( $classes ) {
    	return $classes . ' btn btn-primary';
    }

    Add this snippet to the functions.php file from your child theme and the button should have these classes afterwards. This will also preserve existing classes.

    Let me know if it worked !

    Regards.

    Thread Starter selenasmith

    (@selenasmith)

    Perfect! Thanks for the quick response! 🙂

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

The topic ‘Edit Profile – change the “Update” button’ is closed to new replies.