Change register and login title above the form

Support MB User Profile Change register and login title above the formResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39553
    Christian KleeChristian Klee
    Participant

    Hello,

    if I add the register and login shortcode, I get a h2 with the name 'register' and 'login'.
    Is there a way to remove or change this title?
    It has to be possible because on the MB User Profile page is a (even dynamical?) custom headline for the registration form.

    #39591
    PeterPeter
    Moderator

    Hello Christian,

    There is no option to change this title, but you can add this custom CSS code to Appearance > Customize > Additional CSS, to hide in ton the frontend.

    .mbup-form .rwmb-meta-box > h2 {
        display: none;
    }
    #40058
    pluginovenpluginoven
    Participant

    There is no option to change this title

    Yes there is. This is defined in the file mb-user-profile > src > DefaultFields.php at line 25:
    'title' => 'register',
    Why this is hardcoded is beyond me.

    It seems like every post I make ends the same way. Here to, this is true:


    @rilwis

    I am more than happy to contribute a pull request to either a) Allow the title to be translated:
    'title' => __( 'Register', 'mb-user-profile' ),
    or allow the title to be filtered / set to blank within the shortcode attributes.

    #40059
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback.

    I've created a feature request and sent it to the development team to consider supporting this case in future updates.

    #40070
    Scott BrimScott Brim
    Participant

    What's the best way to upvote this? This problem caused me to abandon using Meta Box for user registration. I don't want to have to maintain alternative code.

    #40082
    Scott BrimScott Brim
    Participant

    fyi I finally used

      form.mbup-form div.rwmb-meta-box:first-of-type > h2 { 
        display:none !important;
      }
    
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.