Hey!
I've been trying to the change the widget title for the plugin. Unfortunately, everytime I think I've changed the right file, I get an error somewhere else.
Could you please guide me on how I can change it?
Hey!
I've been trying to the change the widget title for the plugin. Unfortunately, everytime I think I've changed the right file, I get an error somewhere else.
Could you please guide me on how I can change it?
Modify/create wp-content/plugins/theme-my-login-custom.php and add the following:
function tml_title_filter( $title, $action ) {
if ( 'login' == $action )
$title = 'Member Login';
return $title;
}
add_filter( 'tml_title', 'tml_title_filter', 20, 2 );Hi,
It didn't work for me. Here is what happened:
1. I created the file in the plugin directory so that it does not get erased when I upgrade the plugin.
2. Both on the frontend and backend, I see - "function tml_title_filter( $title, $action ) { if ( 'login' == $action ) $title = 'MAKE AN ANNOUNCEMENT FOR FREE'; return $title; } add_filter( 'tml_title', 'tml_title_filter', 20, 2 ); " on the top.
I've removed the file from the plugin directory now.
I'm using the latest version origin theme and wordpress.
You need to add an opening PHP tag to the file:
<?php
function tml_title_filter( $title, $action ) {
if ( 'login' == $action )
$title = 'Member Login';
return $title;
}
add_filter( 'tml_title', 'tml_title_filter', 20, 2 );Hey!
Thanks! This does the trick. Unfortunately, it changes the welcome message also. It's now a static message.
<?php
function tml_title_filter( $title, $action ) {
if ( 'login' == $action && ! is_user_logged_in() )
$title = 'Member Login';
return $title;
}
add_filter( 'tml_title', 'tml_title_filter', 20, 2 );It works fine when you are at the principal page... but if you click en "forgot password", for exemple, the new $title appears out of the box...
This topic has been closed to new replies.