ThemeMyLogin – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Fri, 09 Oct 2020 08:39:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 How to add a custom button to theme my login’s login page? https://priyank.rocks/how-to-add-a-custom-button-to-theme-my-logins-login-page/ Fri, 09 Oct 2020 08:39:15 +0000 https://priyank.rocks/?p=7228
1
2
3
4
5
6
7
8
9
10
11
12
13
    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=\'https://www.domain.com/LINK\'">Custom Button</button>')

           
        }
       
       
    })
]]>
ThemeMyLogin: How to add a register button to the login page? https://priyank.rocks/thememylogin-how-to-add-a-register-button-to-the-login-page/ Thu, 03 Sep 2020 17:15:20 +0000 https://priyank.rocks/?p=7128 Integration -> Add...]]> 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>')

    }


})
]]>