everlifefree Posted February 16, 2008 Share Posted February 16, 2008 Ok I'm using JavaScript to add in my titles but I would like it to also be shown when Google indexes them, instead of just on my site. The script I'm using now is below: <script language="javascript" type="text/javascript">document.title = document.title + " - Links & Family"</script> Any help is appreciated! Quote Link to comment Share on other sites More sharing options...
nogray Posted February 16, 2008 Share Posted February 16, 2008 Google can't read JavaScript. Use PHP or similar approach. Quote Link to comment Share on other sites More sharing options...
everlifefree Posted February 16, 2008 Author Share Posted February 16, 2008 What way could I do that? Quote Link to comment Share on other sites More sharing options...
nogray Posted February 16, 2008 Share Posted February 16, 2008 how are you using your title? Is this an AJAX page? if not, it's a simple title tag <title>My Title Here</title> or <title><?PHP echo $some_variable;?> - my title</title> If the page is using Ajax to load the content, you'll need to make an alternative page so search engines can spider that page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.