WordPress.org

Forums

Theme My Login
[resolved] Breadcrumbs on TML Pages (8 posts)

  1. jasnon
    Member
    Posted 2 years ago #

    Hi Jeff,

    Thanks for the great plugin. I'm still getting use to the changes after version 6.3 and I'm having one issue with the new TML pages setup. The new pages for Lost Password, Register, etc. are using my current post template I have setup however they're displaying breadcrumbs at the top of the post even though I have breadcrumbs disabled for all my other posts. Any idea why the TML pages are picking them up?

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Because they are now a "singular" post type. Make sure your theme has a page.php template, as it should be used. You can also create specific templates for each action, such as page-login.php or page-register.php.

  3. dalemoore
    Member
    Posted 2 years ago #

    I'm having a similar issue. I already have a page.php, but I've duplicated it to create a page-login.php, page-logout.php, and page-register.php and placed them into my theme's directory, but TML doesn't seem to use them on those pages.

    I'm using the custom breadcrumb code found here: https://gist.github.com/melissacabral/4032941

    And it's adding "Theme My Login Page" into the breadcrumb hierarchy (Home > Theme My Login Page > Login) which I don't want (see this screenshot). So I'm just trying to get rid of the breadcrumbs entirely on the login/out/register pages than fool with it.

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    Create/modify wp-content/plugins/theme-my-login-custom.php (or your theme's functions.php file) and temporarily add the following to it:

    function tml_template_include( $template ) {
    	echo "<!-- Template Used: $template -->";
    	return $template;
    }
    add_filter( 'template_include', 'tml_template_include', 100 );

    Then, view the source of one of the TML pages and post back the output of that tag. It should be at the top of the source.

  5. dalemoore
    Member
    Posted 2 years ago #

    This is at the top:
    <!-- Template Used: /home/....../html/cms/wp-content/themes/THEME_NAME/page.php -->

    Screenshot here... left is source shown in Chrome, right is the theme folder in Coda on Mac showing the files in theme folder on the server.

  6. dalemoore
    Member
    Posted 2 years ago #

    page-register.php seems to work properly on the register page, but the ones for page-login.php and page-logout.php aren't being used. I've opened them and made sure that they have the breadcrumb code removed and they do, but your function shows they're using page.php anyway so I guess it's irrelevant

  7. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    The logout page is just a psudeo-page, it's not actually displayed. Make sure the slug for your login page is "login". If it's something else, the template to use would be something else.

  8. dalemoore
    Member
    Posted 2 years ago #

    The slug for the page was created by TML, and it's "log-in". I guess because it gives the page the name "Log In" instead of "Login" like it used to. I changed slug to "login" just now, logged out, and tried logging back in and it created a redirect loop kicking me out of WP. Had to delete my .htaccess to get in.

    Yesterday I deleted all of the TML Pages, deactivated the plugin, and re-activated it to see if that would fix it all but it didn't re-create the pages for me. So I deactivated the plugin and deleted it entirely (after screenshotting all my settings in case it wiped them, which it did) and re-installed from WP repository. It then re-created the TML pages, but gave it the slug "log-in".

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic