New to Joomla

How to do anything with Joomla

Home Joomla Site Pack Joomla tutorials

On the right you'll find a menu of Joomla tutorials that show exactly how to make various alterations to Joomla or add new facilities.

Each tutorial makes extensive use of screenshots so you can see exactly what to expect, if you are doing the same thing on a website then it's a good idea to have the tutorial open in a window next to the browser or editor window that you are working in.

All our tutorials are free to use and presented as is with no liability for any consequences of their use. It's easy to mess up a working site so please be careful.

Some useful suggestions . . .

  • Always backup before making changes to a production site.
  • Always have at least two backups, one off-site in case of disaster
  • When trying something for the first time, work on a fresh Joomla installation that can be overwritten in case you really mess up.
  • Don't make changes to a production website until you have checked them out on a non-critical site.
 

Once you have a Joomla site running, sooner or later you may want to use javascript, and if you are a more advanced user that's likely to mean jQuery too.

This tutorial is about using javascript of jQuery with Joomla, showing exactly what you need and how to set it up so that it works.

Overview of using javascript with Joomla

Joomla stores the articles that will be published on your website in a database. When Joomla stores the pages it expects text and images, not javascript or html. If you try to put javascript directly onto the page like this . . .

using javascript in joomla

what you you will see on the web page is . . .

using javascript in joomla

So it's obvious that is not going to work. The javascript is being interpreted as plain text instead of being executed by the browser. What we need is a way to insert the javascript directly into the page.

One way to work around this is to use a plain text editor in Joomla, or to click the [show/hide] link above the editor icons, which toggles the visual editor off and shows the actual code . . .

adding javascript to joomla

this does work around the difficulty, and so the browser does execute the javascript, in this case showing an alert.

javascript in joomla

That's one way, but it's not very convenient.

 

 

 

We would all like to have thousands of unique visitors to our websites - there wouldn't be much point in building the sites if we didn't, but despite our best efforts there are subtle, often hidden pitfalls to search engine optimization that can thwart our efforts.

A very useful list of factors that are believed to influence Google's ranking algorithm has been assembled by seomoz.org.  It has been estimated that Google's search ranking algorithm contains over 200 factors that affect search rankings, but in this instance a panel of 37 leading specialists in search engine ranking voted on the factors and ranked them. It makes very interesting reading.

Equally interesting as the top factors that are thought to influence a site's ranking by Google are the factors that are thought to have a negative influence, in other words the things that will penalise your Google ranking. These are of course speculative, but here is the list with some personal observations and comment . . .

  1. content that is inaccessible - pages that can't be reached
  2. very similar or duplicate content - pages that are not very different to others, possibly having been copied with only minor alterations
  3. external links to poor, or known-spam sites - basically if you link to rubbish sites then you may be tarred with the same brush
  4. duplicate title or meta tags on pages - this suggests that the pages have been mechanically generated
  5. overuse of keywords - repeating the same words over and over without good cause

What you can do to avoid these pitfalls of search engine optimisation

If you have a Google Webmaster Tools account and include your site then you will have access to some excellent site diagnostics. These tell you about inaccessible content, so there is no excuse for not sorting out all the pages that can't be reached. The diagnostics will not tell you about similar or duplicate content, but let's assume that you're not in the business of copying content - few people are in reality. Let's also assume that you only link to relevant site of good quality. It's like a false promise sending your visitors to poor sites, you might get away with it once, but once bitten and most visitors will leave your site.

That brings us to duplicate meta tags and keywords.

Using Google's Webmaster Tools to spot and fix duplicate meta descriptions

First let's review what Google and other search engines do with meta descriptions. There is a good explanation on Google's Webmaster Central Blog it explains what the tags are and how meta tags are used by search engines.

The two important tags (in my opinion) are the page title and description. The description, where present, gets shown in the Google search results. Another clue to its importance is that in the Google webmaster tools, there is a whole section devoted to duplicate descriptions. If these were not important then this section would not be there.

The practicalities of avoiding duplicate meta descriptions

 

Here is the Google duplicate meta tags report for New to Joomla - embarrassing, but we need an example.

google webmaster duplicate meta description

Let's look at what additional information we can get from the Google Webmaster tools by clicking the link . . .

additional information

Now we can see the actual text that is duplicated on the 4 pages, clicking the + sign on the left-hand side reveals a list of the pages themselves. Those pages are all in the clean Joomla installation that we have here at New to Joomla. Its purpose is to show exactly what a new, clean installation of the latest version of Joomla looks like. However, Google's found some minor issue with it and that has implications for other installations unless we take some precautions to avoid problems.

The source of duplicated meta descriptions in a Joomla 1.5 installation

First, visit one of the actual pages, then using a browser, view the page source, here is the section of source that was generated by Joomla and contains the description meta tag.

source description tag

Compare the text in double quotes shown above with what Google's Webmaster Tools report showed - no surprises - they are the same, so where are they coming from?

The source of duplicate meta descriptions

Log into your Joomla back-end system as administrator, then view the global configuration from the site menu, you should see something like this .  .  .joomla meta descriptions

Joomla has included a default Global Site Meta Description and Global Sire meta Keywords section. Whatever you put into these text boxes will appear on every page on your Joomla site, unless you override it when you set up the page.

As far as search engine ranking goes this could be a disaster, because all your pages will have the same description, so the search engines will have trouble telling them apart.

What to do about duplicate description meta tags in Joomla

Begin by clearing the global metadata settings; log in to the administrator's back end of your Joomla site, then from the Site menu select Global Configuration and then clear the two default settings, as shown below . . .

clear the default metadata

Save the changes.

To make sure that the changes have been done, preview the site, then view source and confirm that the meta data is shown empty.

How to put real Metadata information into Joomla articles

Having cleared the default metadata we need to know how to set some real, useful descriptions and keywords for Joomla articles as we add the articles.

Begin by adding a new article, then look to the right-hand side of the page where there is a heading Metadata Information, click that and it should open to reveal two text boxes, labelled Description and Keywords. This is where you insert the appropriate Description text and the keywords you would like inserted into the page. Here is what was typed for this page . . .

description and keywords in Joomla articles

You can verify that these are the actual metatags by viewing the source for this page!

Conclusions

In this tutorial we learned how to prevent Joomla 1.5 from assigning the same description and keywords metatags to every page on a Joomla website. This is really important because search engines may penalise sites that duplicate tags. It's a good thing to have meaningful descriptions that are appropriate to each page - it helps anyone viewing search results to decide whether or not to visit your pages.

 

DISCLAIMER: This information is provided free of charge as is, New to Joomla accepts no responsibility for anything that happens to any site as a result of using it. If you do use it, back up any file or information BEFORE you change it so that you can revert to the saved copy if things don't go as expected.

This tutorial shows you how to remove the Joomla free software line and link that appears in the footer of each Joomla page. Sometimes it is not appropriate to have this link showing, at New to Joomla we're proud of the fact that our site is built with Joomla, but there are times when it's appropriate to remove the link. You may need to repeat this change if you update Joomla!

Here's how . . .

Here is what the Joomla link looks like

how to remove the joomla link

There are two lines at the bottom of each page, the copyright notice incorporating the name of the site and the following line that says 'Joomla! is Free Software released under the GNU/GPL License'. It's that second line that we are going to remove.

These two lines are generated by the Joomla footer module, if you simplyturn off the footer by using the administrator controls then the copyright notice will disappear too. We're going to keep that and just remove the second line.

There are many ways to change the file,  we're going to look at two ways, the first, edit the footer using cpanel - a control panel supplied by many web hosting providers the second is to download the file to your local computer, edit it and upload the revised file. For users of some ftp clients, such as Cyberduck there is a third way by directly editing the files on the server.

Using cpanel control panel to edit the Joomla footer

Go to your cpanel control panel and log in using your username and password

From the cpanel screen, select the File Manager

cpanel file manager icon

You will be presented with a list of files in your web server directory, the File Manager allows you to navigate through the directories and work directly on the files. Be careful because you can mess up the site very easily, the File Manager is for experienced and competent users.

cpanel file manager navigation

To navigate into a folder click the icon, to select a folder or file click on the name. You will need to start by clicking the www icon to open the directory, if your Joomla installation is at the top level you should see another list of files similar to the one shown below. If your Joomla installation is in a different directory you will have to navigate to the appropriate place.

Joomla directory structure in file manager

The languages directory is the one we need. The full path to the file needed is:

/www/language/en-GB/en-GB.mod_footer.ini

If you are using a different language then you will need to select the appropriate file.

The next screenshot shows parts of what you will see in cpanel.

select file to edit using cpanel

When you click Edit File in cpanel you should see the file contents like this . . .

# $Id: en-GB.mod_footer.ini 10498 2008-07-04 00:05:36Z ian $
# Joomla! Project
# Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
# Note : All ini files need to be saved as UTF-8 - No BOM
# Note : %date% will be auto replaced by current year !Don't translate

FOOTER=Footer
FOOTER_LINE1=Copyright © %date% %sitename%. All Rights Reserved.
FOOTER_LINE2=<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License.</a>
MOD_FOOTER=<em>mod_footer</em>
THIS MODULE SHOWS THE JOOMLA! COPYRIGHT INFORMATION=This module shows the Joomla! copyright information.

The two lines of the footer text are the aptly-named FOOTER_LINE1 and FOOTER_LINE2

Line 1 is fine, the site name and copyright notice, line 2 is what we want to alter. Note that there are NO quotes around the text.

If you just want to remove the second line, simply remove the html so the line looks like this . . .

FOOTER_LINE2=
MOD_FOOTER=<em>mod_footer</em>
THIS MODULE SHOWS THE JOOMLA! COPYRIGHT INFORMATION=This module shows the Joomla! copyright information.

Do NOT change anything else.

Save the file and check the result on your site. If it's not right go back and make a correction and try again.

Back to top of page

Download the file to your local computer and edit it, then upload it

This method is suitable if you are confident using ftp and editing.

Using your favourite ftp program, log into your site and locate the file . . .

/www/language/en-GB/en-GB.mod_footer.ini

depending on your server you may need a slightly different path, for example . . .

/public_html/language/en-GB/en-GB.mod_footer.ini

Download the file to an appropriate location of your local computer, then open it with your favourite text editor. Do not use a complex word processor because they insert too many special characters, instead use an editor that will work well with basic text files, that means something like notepad++ on a pc or Smultron on a Mac. Both are excellent editors designed for use by 'coders'.

Here's the file contents . . .

# $Id: en-GB.mod_footer.ini 10498 2008-07-04 00:05:36Z ian $
# Joomla! Project
# Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
# Note : All ini files need to be saved as UTF-8 - No BOM
# Note : %date% will be auto replaced by current year !Don't translate

FOOTER=Footer
FOOTER_LINE1=Copyright &#169; %date% %sitename%. All Rights Reserved.
FOOTER_LINE2=<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License.</a>
MOD_FOOTER=<em>mod_footer</em>

THIS MODULE SHOWS THE JOOMLA! COPYRIGHT INFORMATION=This module shows the Joomla! copyright information.

FOOTER_LINE1 outputs the copyright notice

FOOTER_LINE2 outputs the 'Free software' line, if you simply want to remove it, just delete the part that is highlighted in red. Note that there are NO quotes. Don't change anything else.

If you want to include other text or links make the appropriate changes.

Finally upload the file back to the server and test the site to make sure it works as expected.

Back to top of page

 

BEEZ is one of the standard templates that you get when you first install Joomla. Here's an example of what can be done to modify the BEEZ template using CSS to override the colours etc and changing the header so that it includes an image.

When you first install Joomla this is how the BEEZ template looks . . .

 

BEEZ template

 
Here's that same template after modification with . . .

 

 

modified BEEZ template

 
Points to note:
  • you can view the site with the revised BEEZ template (opens in a new window), feel free to browser around and get the look and feel of the site.
  • all the colours have been changed
  • an image has been added to the header
  • header text has been changed
  • google adsense adverts have been added in the left-hand column and across the top
At first sight it may look totally different, but if you look carefully you will see that all the elements of the original are still there, but modified. New to Joomla dot com will be adding a series of tutorials to show how these modifications were done. 

 

 
<< Start < Prev 1 2 Next > End >>

Page 1 of 2