• Resolved PedroDK

    (@pedrodk)


    Hi,

    We’re setting up 2FA on a membersite where everything takes place behind a user login.

    I would like to use a frontend 2FA setup page just like the 2FA shortcode facilitates.

    But we would like to change or remove this text generated by the 2FA shortcode:

    “Two-Factor Authentication, or 2FA, significantly improves login security for your account. Wordfence 2FA works with a number of TOTP-based apps like Google Authenticator, FreeOTP, and Authy. For a full list of tested TOTP-based apps, click here.”

    How can we do that?

    Thank you.

    BW Peter

    • This topic was modified 6 months, 4 weeks ago by PedroDK.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @pedrodk,

    There’s currently no way to customize this from inside Wordfence, and we’re unable to troubleshoot or code-review custom code for customers as subsequent plugin updates could affect it. I’m more than happy to point you in the right direction, so if you’re comfortable doing so, the following JavaScript applied to the page containing the shortcode should hide that paragraph only:

    jQuery('#wfls-management-embedded p:first').hide();

    You can also use the .html('Your new content here') function instead of .hide() if you want to write your own text.

    Many thanks,
    Peter.

    Thread Starter PedroDK

    (@pedrodk)

    Hi Peter,

    Thank you very much for your quick reply.

    I’ll give it a try. 🙂

    Thanks again

    BW Peter

    PS: The name Peter – besides from being a name, also constitutes one of the largest mass designations in history… all the way back from that guy in the Bible… 🙂

    Plugin Support wfpeter

    (@wfpeter)

    Happy to help @pedrodk! All the best to you.

    Peter.

    Thread Starter PedroDK

    (@pedrodk)

    Hi WFpeter,

    I tried to implement the script you wrote above.

    But the codeline itself is only repeated/displayed on the frontend on the particular page with the 2FA shortcode.

    I am using GenerateBlocks Pro to make a hook with your jQuery script inside.

    Can you help me?

    Thank you!

    BW Peter

    Thread Starter PedroDK

    (@pedrodk)

    UPDATE: I got it and it’s working.

    Turned out that jQuery needed to be activated on the site and that the script should go into the footer section of the site.

    Plugin Support wfpeter

    (@wfpeter)

    Great news, thanks for letting us know!

    Peter.

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

The topic ‘Change text on 2FA shortcode page’ is closed to new replies.