Jump to content

[Resolved] Custom title for Log In page


Recommended Posts

Hi,

I searched the forums for this first and realise it may be a requested, future feature.

I previously posted on how to have a custom title on the contact page, I managed to figure it out myself (and posted the fix).

However, for the life of me I cannot figure out how to get the login page to have a custom title (a page title with "Log in" prefix).

Anyone know how to do this or have a workaround? The solution I used for contact doesn't work for log in.

Thanks!

Neil.

Edited by E-Luminate
Link to comment
Share on other sites

Please try:

In /classes/cubecart.class.php, near lines 2147-2151 (for CC618), find:

$GLOBALS['smarty']->assign('REDIRECT_TO', $redir);
$GLOBALS['smarty']->assign('URL', array(
	'register' => $GLOBALS['seo']->buildURL('register'),
	'recover' => $GLOBALS['seo']->buildURL('recover'))
);

On the blank line after that, add:

$meta_data=array('name'=>"Login",'path'=>null,'description'=>"Your Login Page",'keywords'=>"Login",'title'=>"Login",);$GLOBALS['seo']->set_meta_data($meta_data);

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...