Support » Plugin: Theme My Login » [Plugin: Theme My Login] Redirects to blank page if it's the homepage

Viewing 5 replies - 1 through 5 (of 5 total)
  • also, on a sidenote, I had to edit a plugin theme file to get rid of the $title being displayed in my menu… unfortunately $title in such case is not wrapped by any HTML element which I could style by CSS, ie by hiding it

    the code I’ve edited is located at line 151 in includes/class-theme-my-login-template.php

    $title = __( 'Log In', 'theme-my-login' );

    I’ve replaced Log In with a blank string, this retains the title on login page but I can get rid of it in my menu… perhaps I did not do it properly, I didn’t know if there was a way to filter that out…

    if it’s really hardcoded, perhaps the author might consider to grant users the possibility to edit title names and eventually leave them blank if they want

    [ Please do not bump, that’s not permitted here. ]

    I found out a solution for the minor issue in my 2nd post, after reading the documentation from the plugin’s author page – I didn’t notice the shortcode section paremeters could apply for the function – the function documentation is a blank page, sorry

    that fixed the title issue

    but the redirection problem still occurs – if user attempts to login from homepage and login data is invalid, then user will get a blank screen; if it’s from any page in the website, it will be ok – I wish to fix this

    ok I figured the problem out and I hope it’s useful for the plugin developer

    in my setup I’m using WordPress as CMS and I’m not using the standard blog function and index.php is empty

    however, if I use TML as a function to display the form somewhere on my page (header) and if there’s a login failure (wrong pwd, user name, blank field, etc), the form will redirect to index.php and not to front-page.php which is the wordpress home page and website root

    I had to put an include inside index.php to call front-page.php whichh fixed the issue, because TML was erroneusly redirecting to index.php even if I was executing the form from front-page.php

    Would you mind posting your code for that, Substrato? I have a client site with the same problem and I’m hard up for a solution.

    Thanks a ton!


    suppose you want to display the TML login form somewhere in your template (in a widget, in the header, in the footer, anywhere), you just use the function:

    theme_my_login( array( 'show_title' => false, 'show_reg_link' => false, 'instance' => 1, 'login_template' => 'login-form.php' ) );

    show_title allowed me to turn off the title display (I didn’t want it); also I didn’t want to display the registration link (which are managed by another plugin in my case; then you can specify a template

    to avoid the redirect problem I had

    I entered in my index.php (which was otherwise empty)

    include( 'front-page.php' );

    I had to do this because I’m not using the WP blog function (where index.php would be the blog index) and my home page template is represented by front-page.php;

    If you have other redirect problems, try to look into your redirect settings in the TML control panel; also double check your htaccess and permalink structure

    hope this will help you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Theme My Login] Redirects to blank page if it's the homepage’ is closed to new replies.