[Plugin: Theme My Login] Change Page Title for Profile Page
-
I urgently need a solution to fix the page title on a profile.
Login/Register page title should be = Login/Register
Profile page title should be = ProfileCurrently the Profile page title is “Logout” when I use the default WP title tag:
<?php the_title('<h2>', '</h2>'); ?>
How can I change this?
—
I tried to find out about custom templates for TML i.e. for register/login and profile pages, but there is no documentation whatsoever:
https://www.jfarthing.com/docs/Theme_My_Login/Templates—
I know how to change a page title on a custom page i.e.
<?php if (is_page('login')) { ?> <h2 class="page">Register/Login</h2> <?php } ?>
But since the login page and the profile page are in fact the same page (only the “Page Action”? is different), I don`t know how to apply this technique.
Basically I would like to change the page title on a “Login Page Action” i.e.
…profile/?action=profile
or
…profile/?action=login (if there is such a thing)
Something like this did not work:
<?php if (is_page('profile/?action=login')) { ?> <h2 class="page">Register/Login</h2> <?php } ?>
Many thanks for your help!
- The topic ‘[Plugin: Theme My Login] Change Page Title for Profile Page’ is closed to new replies.