Mister Denial Posted August 8, 2011 Share Posted August 8, 2011 Hello, is it possible to set the input field for product meta titles in BO so it will only accept 65 characters, the Google limit? It would make writing meta titles a lot easier to know how many characters long it is without having to copy past it elsewhere first. Thanks in advance for your help and suggestions! Dan Link to comment Share on other sites More sharing options...
shokinro Posted August 8, 2011 Share Posted August 8, 2011 yes, you can set the maxlength=65 attribute of text box, so it will not accept more than 65 character. change file YourAdminFolder/tabs/AdminProducts.php Looking for 'meta title' in the above file, then look for the input tag right after that Before <input size="55" type="text" id="meta_title_'.$language['id_lang'].'" name="meta_title_'.$language['id_lang'].'" ......... After <input size="55" maxlength="65" type="text" id="meta_title_'.$language['id_lang'].'" name="meta_title_'.$language['id_lang'].'" ..... 1 Link to comment Share on other sites More sharing options...
Mister Denial Posted August 11, 2011 Author Share Posted August 11, 2011 Hello Shokinro, thank you for your help, much appreciated! Just a quick question though, does this change also affect existing products, i.e. will it truncate the meta title of products I already have encoded? I think not, but I just want to be sure if I have to check previous entries and correct missing parts. Have a great day! Dan Link to comment Share on other sites More sharing options...
shokinro Posted August 11, 2011 Share Posted August 11, 2011 Just a quick question though, does this change also affect existing products, i.e. will it truncate the meta title of products I already have encoded? I think not, but I just want to be sure if I have to check previous entries and correct missing parts. No. This will only input length of limit. For existing product, the data is already in database. Link to comment Share on other sites More sharing options...
Mister Denial Posted August 11, 2011 Author Share Posted August 11, 2011 Thank you very much for your help, SOLVED! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now