Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 04:57 pm EST
Geeklog Forums
Adding links to the article page - optimization for search engines
Status: offline
elect
Forum User
Chatty
Registered: 10/23/04
Posts: 37
In your FAQ area you state
But... not being a very smart webbie, I'm not exactly sure I understand where in the storytext.thtml and featuredstorytext.thtml to make the changes you suggest (the storytext and featuredstorytext files)
I would guess it matters where in those files I put that line, right? If you'd point me to the right spot to ammend I'd be grateful.
Add links to the article page
To make the spiders index the article.php page (i.e. the page that has the entire story text and not only the intro), it helps to make the story title a link to the actual story (in storytext.thtml and featuredstorytext.thtml):
a href="{article_url}" class="non-ul">{story_title} (inside of the normal brakets - but had to take those out to post this)
Since this would normally make the story title underlined, you can add this to your stylesheet (style.css):
.non-ul { text-decoration: none; }
You can also take this one step further and make the story's headline an actual headline by using the tag:
a href="{article_url}" class="non-ul">{story_title} (inside of the normal brakets - but had to take those out to post this)
Again, this may make the headline stand out too much (the effect depends on the theme you're using), so you may want to add this to your stylesheet:
h1 { font-size: 100%; display: inline; }
The CSS changes are only for the human visitors of your site - experiment with them to make the headline look good with your theme. The search engine spiders don't care about the CSS - but they are very interested in headlines and links ...
To make the spiders index the article.php page (i.e. the page that has the entire story text and not only the intro), it helps to make the story title a link to the actual story (in storytext.thtml and featuredstorytext.thtml):
a href="{article_url}" class="non-ul">{story_title} (inside of the normal brakets - but had to take those out to post this)
Since this would normally make the story title underlined, you can add this to your stylesheet (style.css):
.non-ul { text-decoration: none; }
You can also take this one step further and make the story's headline an actual headline by using the tag:
a href="{article_url}" class="non-ul">{story_title} (inside of the normal brakets - but had to take those out to post this)
Again, this may make the headline stand out too much (the effect depends on the theme you're using), so you may want to add this to your stylesheet:
h1 { font-size: 100%; display: inline; }
The CSS changes are only for the human visitors of your site - experiment with them to make the headline look good with your theme. The search engine spiders don't care about the CSS - but they are very interested in headlines and links ...
But... not being a very smart webbie, I'm not exactly sure I understand where in the storytext.thtml and featuredstorytext.thtml to make the changes you suggest (the storytext and featuredstorytext files)
I would guess it matters where in those files I put that line, right? If you'd point me to the right spot to ammend I'd be grateful.
13
12
Quote
Status: offline
jonc
Forum User
Chatty
Registered: 09/12/04
Posts: 50
it should roughly be about line 6. change this:
to this:
I haven't tried it personally, but that is what the article says.
Text Formatted Code
<td class="storytitle">{story_title}</td>to this:
Text Formatted Code
<td class="storytitle"><a href="{article_url}" class="non-ul">{story_title}</a></td>I haven't tried it personally, but that is what the article says.
13
12
Quote
Status: offline
eyecravedvd
Forum User
Full Member
Registered: 06/09/03
Posts: 152
If you want it be even more search engine friendly (I added this and I've notice a big jump in stats since) add the following to the
Shane | www.EyeCraveDVD.com
Text Formatted Code
<a href="{article url}" title="{story_title}" class="non-ul">{story_title}</a>Shane | www.EyeCraveDVD.com
8
15
Quote
Status: offline
elect
Forum User
Chatty
Registered: 10/23/04
Posts: 37
Awesome. Thanks everyone. Since I'm only using the Professional theme on the new site installation, I guess I'm good to go on that one.
When I tackle my upgrade on my other site, I guess I'll need to make myself a checklist to update the other theme files. Much appreciated.
When I tackle my upgrade on my other site, I guess I'll need to make myself a checklist to update the other theme files. Much appreciated.
16
10
Quote
All times are EST. The time is now 04:57 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content