• Resolved allandore

    (@allandore)


    Hello !

    I tried to customize the login form of user meta lite, used in one of my page with the shortcode [user-meta-login]

    But I have no idea where I can modify the CSS and the content (for example change a color or add an h1 tag) of this form in the PHP files.

    Is anyone already did that ?

    Thank you very much

Viewing 1 replies (of 1 total)
  • Thread Starter allandore

    (@allandore)

    Okay I found a solution, an ugly one but it works.

    In page.php, put everything you only want on your custom login form (where you add [user-meta-login]) between an if requirement. We will check if we are or not on the custom login page to add specific html tags.

    In my case, this is the URL of the page : localhost/login-custom/

    So here we are :

    <? php

    // Get the entire URI of the actual page
    $actual_link = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]&#8221;;

    // If in the URI there’s the name of the login custom page
    if (strpos($actual_link, ‘login-custom’) == true) {

    // Put everything you want
    <div class=”test”></div>

    }

    ?>

    And after that in your CSS you can refer to theses classes.

    Ugly isn’t it ^^ ?

    • This reply was modified 3 years ago by allandore.
Viewing 1 replies (of 1 total)
  • The topic ‘Customize Login form’ is closed to new replies.