Joomla 1.5 little SEO Tips & Tricks

Forum closed, please submit your tips and tricks to: http://docs.joomla.org/Category:Tips_and_tricks
Locked
User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Joomla 1.5 little SEO Tips & Tricks

Post by juanparati » Tue Jun 17, 2008 12:39 pm

My first little SEO Tip & Trick for Joomla is add a static text in the <title>

Open the file:
libraries/joomla/document/html/renderer/head.php

Search for the next piece of code

Code: Select all

$strHtml .= $tab.'<title>'.htmlspecialchars($document->getTitle()).'</title>'.$lnEnd;
Add your statict text for example:

Code: Select all

$strHtml .= $tab.'<title> All about Canada - '.htmlspecialchars($document->getTitle()).'</title>'.$lnEnd;
The text into the <title> tag is very important for the search engines.

If you need obtain a great search results for the word "All about Canada" I recommend your put the static text before of the $document->getTitle();

Other important thing, is don't use symbols like ":" or "$", etc for the title.

Please if you know some Joomla 1.5 SEO Tip & Trick, please post it here! ;)
Last edited by juanparati on Fri Jun 20, 2008 8:51 am, edited 1 time in total.
From the code to the reality!

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13272
Joined: Fri Aug 12, 2005 12:38 am
Location: Australia
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by brad » Tue Jun 17, 2008 4:34 pm

Thanks for sharing...

Why not put tips like this on: http://docs.joomla.org ?

User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by betweenbrain » Fri Jun 20, 2008 3:43 am

Brad,

I've gone ahead and started a SEO page at http://docs.joomla.org/SEO. I'll go ahead and add this one. I'm on the hunt for more and will be adding to the doc as they're found.
Best,

Matt Thomas

User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Add heading tags in the titles for more relevance

Post by juanparati » Fri Jun 20, 2008 9:27 am

Search engines give a special relevance to the senteces between a "H" tag like <h1>, <h2> or <h3>.

If you want put a "H" tag to the article titles in joomla 1.5 you need edit some files:

Open components/com_content/views/category/tmpl/blog.php

seach for this piece of code (Line 5):

Code: Select all

<div class="componentheading<?php echo $this->params->get('pageclass_sfx');?>">
	<?php echo $this->escape($this->params->get('page_title')); ?>
</div>
add your "H" tags between the title like this:

Code: Select all

<div class="componentheading<?php echo $this->params->get('pageclass_sfx');?>">
	<h1><?php echo $this->escape($this->params->get('page_title')); ?></h1>
</div>
Remember normalize the font-size of the "H" tags using css, for example

Edit your template css and add something like:

Code: Select all

.componentheading h1 {
  font-size: 16px;
}
Last edited by juanparati on Sat Jun 21, 2008 3:39 pm, edited 1 time in total.
From the code to the reality!

User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Dynamic MetaDesc in a list of articles by category

Post by juanparati » Fri Jun 20, 2008 10:05 am

When you view a list of articles by category, joomla put into the page the default configuration metadescription, but perhaps we want write the category description into the metatag for SEO reasons.

For this we need open the file:
includes/application.php

Search for this piece of code in the function &getParams:

Code: Select all

$params->def( 'page_title'      , $title );
$params->def( 'page_description', $description );
Add this code before:

Code: Select all

if (strcasecmp($_GET['view'],'category')==0) {         
         $description = $database->GetOne("SELECT description FROM #__categories WHERE id={$_GET['id']}");       
}
It's ok, now the metadescription is more dynamic when you view a list of articles by category.
Last edited by juanparati on Thu Jun 26, 2008 12:05 pm, edited 1 time in total.
From the code to the reality!

User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Utilize RSS Feeds for Search Engines

Post by betweenbrain » Wed Jun 25, 2008 9:50 pm

I just figured this one out. Kinda nice for static sites. It can also be found at http://docs.joomla.org/SEO

Some search engines allow you to submit feeds to them for utilization in their search capabilities. Yahoo! Site Explorer http://siteexplorer.search.yahoo.com is one such service. This is a powerful way for sites that regularly update their content to get relevant search placement. It can also be used for simpler sites that have fairly static pages. This procedure will explain how to create feeds for pages within your site, be it static or not.

In Joomla! 1.5.3: If you are not using sections and categories for your static pages, create a generic section for these static pages, such as "website content". Create separate categories for each static page. Change your menu items from, for instance, Article Layout to Category Blog Layout. Under the advanced parameters for the menu item, make sure that the show a feed link item is set to show. Make sure the syndicate module is published. If it isn't go to the Extensions Menu, select Module Manager, select the new icon, select Syndicate and publish the module in the desired position. You can then view the site and copy the URLs for each feed to submit to each search engine.

NOTE: You should have SEF enabled for this to work well.
Best,

Matt Thomas

User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Joomla SEO References

Post by juanparati » Thu Jun 26, 2008 12:21 pm

From the code to the reality!

User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by betweenbrain » Thu Jun 26, 2008 1:12 pm

Good resources. I wonder if this has the potential to become a sticky someday.
Best,

Matt Thomas

User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Re: Joomla 1.5 little SEO Tips & Tricks

Post by juanparati » Wed Jul 09, 2008 12:38 pm

Add a site map for your Joomla with:
Joomla 1.5 Sitemap
From the code to the reality!

User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by betweenbrain » Wed Jul 09, 2008 1:53 pm

Good point. Thanks!
Best,

Matt Thomas

akonews
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat Jun 28, 2008 9:30 am

Re: Joomla 1.5 little SEO Tips & Tricks

Post by akonews » Wed Jul 09, 2008 8:38 pm


User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by betweenbrain » Wed Jul 09, 2008 9:15 pm

Are you referring to JoomSEF?
Best,

Matt Thomas

User avatar
alledia
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Tue Jul 18, 2006 3:55 pm
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by alledia » Thu Jul 10, 2008 1:58 pm

Two problems with hacking the files in this way:

1) Makes it harder for non-technical people to upgrade
2) All this work and more has already been done by Artio, sh404SEF and others
Joomla extensions and templates: http://Joomlashack.com

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by ircmaxell » Fri Jul 11, 2008 11:15 am

betweenbrain wrote:Good resources. I wonder if this has the potential to become a sticky someday.
My personal feeling is no, because it involves core hacks. You can do everything here without ever touching a single core file, so it is not necessary to hack them ( and bring about the upgrade issues that Steve talks about ).
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13272
Joined: Fri Aug 12, 2005 12:38 am
Location: Australia
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by brad » Fri Jul 11, 2008 11:17 am

FYI The best place now for Tips & Tricks is: http://docs.joomla.org especially the submitting of new ones ;)

User avatar
betweenbrain
Joomla! Guru
Joomla! Guru
Posts: 801
Joined: Wed Feb 28, 2007 5:40 am
Location: Connecticut, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by betweenbrain » Fri Jul 11, 2008 12:15 pm

Brad,

Thanks for helping keep us on track. Check out http://docs.joomla.org/SEO

Matt
Best,

Matt Thomas

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13272
Joined: Fri Aug 12, 2005 12:38 am
Location: Australia
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by brad » Fri Jul 11, 2008 9:22 pm

Excellent.

User avatar
juanparati
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Thu Nov 08, 2007 6:00 pm
Location: Aarhus (Denmark)

Re: Joomla 1.5 little SEO Tips & Tricks

Post by juanparati » Tue Jul 15, 2008 9:04 pm

ircmaxell, please can you explain, how we can do all this SEO tricks without core hacking?
From the code to the reality!

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Joomla 1.5 little SEO Tips & Tricks

Post by ircmaxell » Tue Jul 15, 2008 9:42 pm

juanparati wrote:ircmaxell, please can you explain, how we can do all this SEO tricks without core hacking?
http://developer.joomla.org/tutorials/3 ... oomla.html
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs


Locked

Return to “Submit Your Suggested Tips & Tricks to Docs.joomla.org now please.”