A small Joomla hack for SEO
You need to hack the components/com_content/content.html.php . To do that I used shell access. You can use joomlaXplorer if you gave your files xx6 or xx7 permissions and the owner is apache. If the owner is a user with shell access then you will do what I did.
If you don't understand the above then use the joomlaXplorer to go to the directory components/com_content and check if you can edit the file content.html.php . If you can then click edit.
You must go to line 609 and change the following:
<td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <a xhref="<?php echo $row->link_on;?>" class="contentpagetitle<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo $row->title;?></a>with this:
<td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <h2> <a xhref="<?php echo $row->link_on;?>" class="contentpagetitle<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo $row->title;?></a> </h2>
***Be carefull, in HTML tag a you may seem xhref, it is href .
If you notice, all you have to do is add the h2 HTML start and end tag before and after the a tag. Of course you can add the h1 tag but the title may seem too big. The same goes for the second but there is no a tag, which means that the title is not linkable.
Then a few lines after (line 617), you will see this:
<td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <?php echo $row->title;?> <?php HTML_content::EditIcon( $row, $params, $access ); ?>
You will also change it, with this:
<td class="contentheading<?php echo $params->get( 'pageclass_sfx' ); ?>" width="100%"> <h2> <?php echo $row->title;?> </h2> <?php HTML_content::EditIcon( $row, $params, $access ); ?>
Save the file and logout.
That's it! You will see that the titles are headings. I think that in Joomla 1.5 it will be an option and no hack will be needed.
The Academic Site of Velonis I. Petros


Comments