Jump to content

Titles


everlifefree

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.