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! Link to comment https://forums.phpfreaks.com/topic/91435-titles/ 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. Link to comment https://forums.phpfreaks.com/topic/91435-titles/#findComment-468473 Share on other sites More sharing options...
everlifefree Posted February 16, 2008 Author Share Posted February 16, 2008 What way could I do that? Link to comment https://forums.phpfreaks.com/topic/91435-titles/#findComment-468476 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. Link to comment https://forums.phpfreaks.com/topic/91435-titles/#findComment-468480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.