wordpressThemeMyLogin

ThemeMyLogin: How to add a register button to the login page?

By September 3, 2020 No Comments

The solution was a piece of jQuery code. If you are using Divi, this can be placed in Divi theme options -> Integration -> Add code to the < head > of your blog.

1
2
3
4
5
6
7
8
9
10
11
jQuery("document").ready(function () {


    if (window.location.href.includes("login")) {

        jQuery('.tml-submit-wrap').append('<button name="submit" type="button" class="tml-button" onclick="window.location=\'THE PAGE LINK\'">Become a Tutor</button>')

    }


})