Hi Team,
I wanted to know if I customize the meta title and description of the usuall Sign In page and Vendor Sign In page
I’m currently using the rankmath SEO plugin
Hi Team,
I wanted to know if I customize the meta title and description of the usuall Sign In page and Vendor Sign In page
I’m currently using the rankmath SEO plugin
Hi,
Please check the Rank Math settings to see if they have an option to set the meta title and description using the URL, as this is not a page and it is not available in WP Dashboard > Pages.
Is there any other way to change the meta title and description of the sign in pages (the usuall sign in page and the vendor sign in page), may be from theme files?
Hi,
If the third-party plugin doesn’t add meta title, we can provide a PHP snippet, let me know if it works for you.
That would be great help thank you Andrii,
Here are my login pages, I would need the code for both of them
https://www.scrapit.in/account/login/
https://www.scrapit.in/account/login/?redirect=https%3A%2F%2Fwww.scrapit.in%2Fregister-vendor%2F
Please try using this code snippet, replacing “test” with titles and descriptions:
add_action(
'wp_head',
function () {
if ( ! function_exists( 'hivepress' ) || hivepress()->router->get_current_route_name() !== 'user_login_page' ) {
return;
}
$title = 'test';
$description = 'test';
if ( isset( $_GET['redirect'] ) && $_GET['redirect'] === 'https%3A%2F%2Fwww.scrapit.in%2Fregister-vendor%2F' ) {
$title = 'test';
$description = 'test';
}
echo '<meta name="title" content="' . esc_attr( $title ) . '">';
echo '<meta name="description" content="' . esc_attr( $description ) . '">';
},
1000
);
Hi ihor,
Thank you for sharing the code,
but this is unfortunately updating only the desciption of the sign in page, the title remains the same
and does not update two different descriptions for the sign in pages, it is updating the same description as on this page Sign In – Scrapit and my vendor redirect sign in page as well
please help
Hi,
Could you please clarify how exactly you checked the title? If in the browser, it will not change there, it will only change in Google results, for example.
Hi Andrii,
Yes I’m checking this on my browser
Just wanted to know if it is possible that if it is not reflecting in browser then would Google be able to pick this up from the code, because right now rank math title and descriptions are present, but I’m not able to edit the sign in and vendor sign in title and descriptions from Rankmath
and on Google results as well I’m getting the same as shown in the browser
Hi,
We checked this issue from our side, and it seems okay. As you can see in the screenshot, everything is displayed correctly: Awesome Screenshot
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.