How to make a Static home page in Joomla

Joomla is a fantastic tool for building modern and dynamic websites. However, many people new to Joomla find it hard to set up their site to mimic a non-portal site with one or more fixed articles on the front or main home page. In this article I will try to explain some of the tricks you can use to achieve this effect while keeping the RSS feed and the blog style layout of the dynamic content.In Joomla the “Home” page is not just a regular page. In fact, the “Frontpage“, as it is called, is nothing more than a Joomla component in its own right.

Read more about Joomla, Zen cart and web design at: ContiCreative.com

In a regular Joomla site the “Frontpage” allows the user to publish selected articles in a “blog” or “portal” style. While this is a nice feature and one of the things that make Joomla so powerful, many websites need a Home page with a fixed article to greet and guide visitors or illustrate the  site purpose. While this is actually easy to achieve, it is not immediately evident. I will assume you know your way around Joomla! by now, but even if you don’t these techniques should be fairly easy to follow.

The Static Page

This is possibly the easiest technique of all. Create a static content item and in your administration area go to the “Menu Manager”.

Choose “Main Menu”, link the static content you created (or alternatively, make a link to it from the content pane) and once

you are done move the link to the number 1 spot in the list of links of Main Menu.
In Joomla the topmost link in the Main Menu is the site’s home page. Go back to the live site and you’ll see that your static article is your home page.
To keep your RSS feed (remember, in Joomla only the Frontpage has an RSS feed attached to it) move the previously named “Home” link elsewhere. Because of its blog style appearance and functionality you can move it to a link named “Blog” if you need a blog on the site with an RSS feed and it will work just fine for that purpose.

The module

What if you need a static, fixed article on your Home page but you want to retain the ability to publish other articles on your home page in more of a “portal” style? In this case you’ll need to get your hands dirty a bit and follow this procedure:

  • In your Modules > Site Modules create a new module.
  • Name it what you want but a descriptive title will help.
  • In this module you will see a bunch of fields that allow you to publish an RSS feed in a module position.
  • Ignore those and skip to the content pane at the bottom of the module interface.
  • There you will be able to write your content as if it was a regular content item.

Before you save, go to the top of the interface and make sure you:

  • Publish the module (select yes)
  • Pick an unused Position such as user7, 8 or 9 (or any other non-named position – named positions are fine if you don’t use them in your site but I prefer numbered positions)
  • Ignore module order. If this is the only module in this position it won’t matter
  • Go to the right pane and make sure you publish the module in the first link of the Main Menu (usually “home”)
  • If needed (as we’ll see later) apply a “Module Class Suffix” (something like “-homepage”) to allow you to style the module independently of the others if needed.

Wait, you are not done. Now you’ll need to make a small change to your template.

  • Go to your FTP program and download your index.php file from the template directory (not the main Joomla index.php).
  • In fact, you should already have at least the entire template directory for your site on your hard drive.
  • Next, in index.php look for the name of the div that contains your current content.
  • You need to insert what is called a “module position” in the space above your content.
  • To make this easy, search for this tag: <?php mosMainBody(); ?> (This is your main body tag where your content should appear in your template. Above that you will see a number of DIVs elements (or table tags if that’s what you are using).

If you need help finding a good spot for your new module, do this:

  • Go to your site
  • Do a “view source”
  • In Dreamweaver or other text editor, paste the source
  • Identify the main content in your HTML and see where you could include a div or table above it. Remember, now you are working with a good old static page here, so it should be easy.
  • Make a note of the tags used above your content and find the same tags in your index.php file
  • Insert this code where you would like your static content to appear:
    <?php mosLoadModules ( ‘userX’); ?>
    (There, I finally made the change, sorry for the error)
  • X marks the user number you have specified when you created the new module.
  • Upload the index.php file to the server – NOTE: Make a backup first!
  • Go check if it works fine. If you need to style it you can now use the suffix you specified earlier like this:
    module-suffix {} (where “module” is the stock class used by a module and “-suffix” is what you entered in the module panel)

Try also without the suffix if you want. Just remember you have the option.

Now, you should have your regular “Frontpage” working as usual but you’ll also have a static content item at the very top. If you need to display also other static content while still having the dynamic “blog” style content, you can repeat the process by placing more modules in the same position, placing another position anywhere on the page or placing modules with static content in the side positions.

Just remember to publish the static content exclusively on the home page or every page will have the same static content in it and remember that your static content is no  longer in the regular Joomla content structure and each time you need to update it you’ll need to go to the module manager.
The component

There is also a contribution that substitutes the Frontpage component and does pretty much the same thing on its own. It is called “MJ Frontpage” and it is available here http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,995/Itemid,35/

To install simply use the regular component installer and go to components > MJ Frontpage. There you will find a content pane for your static content. All the features of the Frontpage should be available but read the documentation to make sure.
Ordering content

This should be it’s own article and I will only touch on it in passing. however, I would be remiss if I didn’t mention that in Joomla it’s possible to customize the order in which your articles appear in any kind of list, blog or even in the Frontpage.

To have an article permanently fixed in your Frontpage you need to make sure that you set up the custom ordering of your Sections, Categories and single articles. This is trickier than it sounds and as I said it merits it’s own article, but if you know even just a bit of Joomla you should be able to figure it out by going to the Category manager, Section Manager and content manager, place the sections, categories and content in the order you prefer and make sure you select the custom ordering in your Frontpage preferences ( Admin > top menu > Content > Frontpage Manager).
The drawback of this system is that your RSS feed will also be affected by it and it will display in the same order, making it appear at first glance as if it wasn’t updated in a while.

I hope you found this article useful and feel free to let me know how I can improve it. Good luck

Marco Conti is the owner – webmaster of conticreative.com, a web agency specializing in Open Source integration for e-commerce, CMS and SEO.

Check out my new website where I am now maintaining all my blogs Please visit my blog page on www.conticreative.com if you are interested in my articles.
Thank you and I apologize for the inconvenience.
Marco Conti

67 responses to “How to make a Static home page in Joomla

  1. A very good article which I followed along nicely,

    2 mistakes I found though were in the paragraph below

    “Insert this code where you would like your static content to appear: ”

    ” ”

    too many braces above, should read

    ” ”

    But even that is the wrong command – the correct code should read,

    “”

    Good article and look forward to more work you publish.

  2. And it removes all the PHP code Great…

  3. This seems like it could be useful if it were fleshed out some more. (What a wiki entry is for!).

    The whole point of this is to help newbies, who do not jump missed steps. Case in point so far:

    >Create a static content item
    Obviously this is an important step, but I am stuck already! I’ll assume this is under the ‘Content’ menu, and Article Manager?? If so, what options should be set when creating the article???

    >and in your administration area go to the “Menu Manager”.

    I think this means “Menu Manager -> Edit Menu Items??

    >Choose “Main Menu”, link the static content you created (or alternatively, make a link to it from the content pane)

    This is frustrating. Why taunt us here?

    Under the edit menu, create a New Link is obvious but… what MENU ITEM TYPE should be selected? Please!

    If the author is busy or not monitoring this article, would someone please finish this article and post the URL here? There’s room for some good Google Pagerank karma… this is the most promising article I have found, but the 100 meter view is unnecessarily difficult.

    Thanks for trying though.

  4. Pingback: How to make a Static home page in Joomla · Joomla How To - Joomla Tutorials and Resources

  5. Thank you for pointing me in the right direction – I tried this but the code is incorrect as noted above. The correct code is:
    //

    remove // from before the above and change X in userX to your chosen number.

    Good luck

    Anon

  6. And again, removes the code aaaaahhhh!

    As above, insert this code where you would like your static content to appear: change to

    [?php mosLoadModules ( ‘userX’); ?]

    Change [ for
    change X in userX to your chosen number.

    Good luck

    Anon

  7. Hello everyone, it has been a long time since I wrote this post and things have changed a lot. I apologize to those that found I missed steps. I try my best not to do that, but time is precious and I am usually accused of being too verbose in my tutorials. Therefore I try to make my points as brief as possible but sometimes some steps do need to be fleshed out a bit more.

    I will revisit this topic soon and adapt it to the new Joomla 1.5 version. It’s a promise :)

  8. By the way, I tried fixing the code according to the suggestions of the other posters, but with WordPress rewriting the syntax and the fact that I no longer work with Joomla 1.0.x it proved a bit hard.
    I think I’ll dust off one of my older Joomla sites and take a picture of the code as well as rewrite the article for Joomla 1.5.x, where the process and the code have changed somewhat.
    Thanks for all the kind words and thanks for the criticism as well. I like to see that people care.

  9. Prince “Everybody get up clap your hands, show them what you got. Meanwhile, two marine crustaceans, Will the Krill (Brad Pitt) and Bill the Krill (Matt Damon), are debating whether they should try and climb a little higher up the food chain. If the number of penguins dying is higher than the number that is living, then the entire population will fall.

  10. I delight in, result in I discovered exactly what I used to be looking for.
    You have ended my four day lengthy hunt! God Bless you man.
    Have a great day. Bye

  11. I absolutely love your site.. Great colors & theme.
    Did you build this web site yourself? Please reply back as I’m attempting to create my own blog and would like to know where you got this from or just what the theme is called. Many thanks!

  12. I do not comment, but I read a few of the responses on this page How to
    make a Static home page in Joomla | conticreative.
    I do have a couple of questions for you if
    it’s allright. Is it simply me or do a few of the responses look like they are coming from brain dead visitors? :-P And, if you are posting on additional sites, I would like to keep up with anything fresh you have to post. Could you list of the complete urls of all your social pages like your twitter feed, Facebook page or linkedin profile?

  13. When in front of answering this question, let us with ease
    define exactly that which we mean at penny stocks.
    This strategy looks for stocks what one are a bit of unfavoured for the exact moment.

  14. What’s up, its nice piece of writing about media print, we all know media is a wonderful source of information.

  15. If you desire to increase your experience simply keep visiting this website and be updated with
    the hottest news posted here.

  16. Hi! I could have sworn I’ve been to this blog before but after looking at some of the articles I realized it’s
    new to me. Regardless, I’m certainly delighted I found it and I’ll be bookmarking it and checking
    back frequently!

  17. If you think this just another one of those articles. Send an email, letting them
    know about your upcoming promotion – but don’t give everything away. Our technical resources give each project their comprehensive attention.

  18. There is certainly a lot to know about this subject.
    I really like all the points you have made.

  19. It is appropriate time to make some plans for the long run and
    it is time to be happy. I’ve learn this put up and if I may just I want to suggest you some attention-grabbing things or suggestions. Perhaps you could write next articles referring to this article. I want to learn more issues about it!

  20. Hello just wanted to give you a quick heads up. The words in your content seem to be running off the screen in Ie.
    I’m not sure if this is a format issue or something to do with browser compatibility but I figured I’d post to let you know.
    The design look great though! Hope you get the issue solved soon.
    Many thanks

  21. Hi there very nice site!! Guy .. Beautiful .. Wonderful .
    . I’ll bookmark your website and take the feeds also? I am satisfied to find numerous useful info right here in the submit, we’d like develop extra strategies in this regard,
    thank you for sharing. . . . . .

  22. Hello friends, its wonderful paragraph on the topic of
    cultureand fully explained, keep it up all the time.

  23. Take time to do the research by indicating items
    in windows which you pass, but keep it casual. Then watch him shock himself when he goes to write
    with it. To have the value out of your money, it’s safer to offer a child a flexible sterling silver charm bracelet.

  24. You ought to be a part of a contest for one of the
    finest blogs on the internet. I will highly recommend this blog!

  25. Heya are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and create my own.
    Do you require any coding knowledge to make your own blog?
    Any help would be really appreciated!

  26. Oh my goodness! Impressive article dude! Many thanks, However I am encountering troubles with
    your RSS. I don’t understand why I am unable to join it. Is there anyone else getting similar RSS problems? Anyone who knows the answer will you kindly respond? Thanks!!

  27. Right here is the right blog for anyone who hopes to
    understand this topic. You realize so much its almost
    tough to argue with you (not that I really will need to…HaHa).
    You definitely put a fresh spin on a subject which has been written
    about for years. Wonderful stuff, just excellent!

  28. Statistics show boys develop autism four times more often than girls, and
    medical experts now predict three to six children out of every 1,000 will develop autism.
    At least one-third of patients still have symptoms after adding a
    second drug or switching to another medicine. No matter what medicine
    to take, consent of the doctor must always be obtained. Mitch Earleywine,
    Ph – D, Associate Professor of Psychology at University at Albany at
    the State University of New York stated that “[t]he use of only one active ingredient makes dronabinol less effective than medical marijuana. The company had an outstanding long-term debt of $6.

  29. Write more, thats all I have to say. Literally, it seems as
    though you relied on the video to make your point. You clearly know
    what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something informative to read?

  30. Spot on with this write-up, I actually think this web site needs far more attention.
    I’ll probably be returning to see more, thanks for the information!

  31. When you already have a budget, you will be financially
    guided with the renovation. These people will help you to
    modify your strategy when it is required, because an
    excellent contractor will want both of you to get pleased at
    the conclusion of your challenge and they will are aware that to get associated with acquiring that’s if you ever either comprehend as well as concur the venture prior to starting. The old adage, “measure twice and cut once” certainly applies here too.

  32. I have a keen synthetic attention to get fine
    detail and can anticipate difficulties prior to these people
    happen.

  33. Hello! This is my 1st comment here so I just wanted to give a quick
    shout out and say I truly enjoy reading through your articles.

    Can you recommend any other blogs/websites/forums that deal with
    the same subjects? Thank you!

  34. With price points for every budget, buying a CCTV package does not need to be an expensive ordeal.
    There are various different options on CCTV systems.
    You can even use more advanced technology such as face identification
    when a person enters the place.

  35. Greetings I am so thrilled I found your weblog, I really found you by
    mistake, while I was looking on Askjeeve for something else, Nonetheless I am here
    now and would just like to say thanks a lot for a remarkable post and a all round enjoyable blog (I also love the
    theme/design), I don’t have time to browse it all at the moment but I have saved it and also added in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the great work.

  36. Balfour Beatty Communities has more than 13 years of experience.
    However, if you have any concerns about legal
    matters regarding your property, the more of your profit margin you will lose.
    Individuals employed in residential properties know that there are no cobwebs around or leaves in the gutters.
    These skills are an important part of the residential properties firm will provide is the task of handling
    any issue that may arise in regard to the tenants: repairs to the property and submit for approval.

  37. An outstanding share! I have just forwarded this onto a coworker who was conducting a little homework on this.
    And he in fact ordered me breakfast simply because I found it for him.
    .. lol. So allow me to reword this…. Thank YOU for the
    meal!! But yeah, thanks for spending the time to talk about this topic here on your blog.

  38. We stumbled over here by a different website and thought I should
    check things out. I like what I see so now i am following you.
    Look forward to finding out about your web page again.

  39. Presented in this post are some essential security act of 1933 solutions which home owners may apply to their residence.
    To view the details of VueZone System with 1 Indoor
    Camera and 1 Indoor Motion Detection Camera SX2500 VueZone SX2500.
    Security Act Of 1933 systems are usually complex units and therefore it will
    require a 5 lever security mortice lock, and if there is a need for a locksmith creates a
    problem for getting to a phone book.

  40. Growth is a vital part of any religious organization. Hunters, wildlife management officers, and game control agencies
    often use night vision rifle scopes and other night vision equipment to assist in deer hunting, varmint control, and other activities that are easier at night.
    The armband looks cool and fits the style of any athlete.

  41. This is in contrast to those that branded are made from 80% to 100% recycled material.
    Place one nail toward each end and one over each cutout.
    A few roofing contractors have a roofing calculator on their web-site to give you a guaranteed warranty branded for between twenty and fifty years.

  42. I know this if off topic but I’m looking into starting my own weblog and was curious what all
    is needed to get set up? I’m assuming having a
    blog like yours would cost a pretty penny? I’m not very
    web smart so I’m not 100% certain. Any tips or advice would be greatly appreciated.
    Appreciate it

  43. It’s going to be finish of mine day, except before
    end I am reading this great piece of writing to improve my experience.

  44. Hi there to every one, the contents existing at this web site are actually
    remarkable for people knowledge, well, keep up the nice work fellows.

  45. Good day, such an educational piece of info on blogging, personally, I’m exploring other blogs beyond blogspot , that is, namely joomla, drupal and wordpress. have a great day in blogging. bronx roofing contractors ny

  46. What’s up, yeah this post is actually pleasant and I have learned lot of things from it about blogging.
    thanks.

  47. I think the admin of this site is really working hard
    in support of his web page, since here every stuff is quality
    based information.

  48. I do belive all of the ideas yoou have presented iin your post.
    They’re really convincing and will certainly work. Nonetheless,the posts are very quick foor
    starters. May you please lengthen them a little from next time?
    Thsnks for the post.

  49. What a information of un-ambiguity and preserveness of precious knowledge concerning unpredicted feelings.

  50. I do not even know how I ended up here, but I thought this post was great.
    I do not know who you are but definitely you are going to a famous blogger if you aren’t already ;) Cheers!

  51. Wow, awesome weblog structure! How long have you ever been running a blog for?
    you make blogging look easy. The entire look of your site is excellent,
    let alone the content material!

  52. Wow that was strange. I just wrote an incredibly long comment but after I clicked submit
    my comment didn’t show up. Grrrr… well I’m not writing all
    that over again. Regardless, just wanted to say excellent blog!

  53. I love looking through an article that can make men and
    women think. Also, thanks for allowing for me to comment!

  54. I think the admin of this site is really working hard
    in support of his web site, as here every information is quality
    based information.

  55. I am regular visitor, how are you everybody? This paragraph posted at this web site is really nice.

  56. I’m truly enjoying the design and layout of your
    website. It’s a very easy on the eyes which makes it much more pleasant for
    me to come here and visit more often. Did you hire out a developer to create
    your theme? Outstanding work!

  57. I got this website from my buddy who informed me regarding this site and now this time I
    am browsing this web site and reading very informative articles
    or reviews at this place.

  58. Your style is unique in comparison to other folks I’ve read stuff from.
    Thank you for posting when you have the opportunity, Guess I will just book mark this
    blog.

  59. I constantly spent my half an hour to read this webpage’s posts all the time along with a cup of coffee.

  60. Hmm it appears like your blog ate my first comment (it was extremely long) so I guess I’ll
    just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any suggestions for first-time blog writers?
    I’d certainly appreciate it.

  61. Hi, its pleasant article about media print, we all understand media is a fantastic source of facts.

  62. Lien de téléchargement: http://goo.gl/ycwCIJ Comment avoir des Chèque Cadeau
    Amazon Gratuit! Générateur Chèque-Cadeau Amazon! Comment
    obtenir Chèque Cadeau Amazon gratuitement avec la preuve!
    Télécharger Chèque-Cadeau 2014! Comment Gagner Chèque-Cadeau Amazon!
    Aujourd’hui, j’ai l’honneur de vous présenter la nouvelle version de notre logiciel Générateur Chèque Cadeau Amazon!
    Maintenant vous pouvez acheter tout gratuitement!

    Merci pour ce fantastique generateur, vous pouvez générer differente cartes cadeau pour vous
    et vos ami(e)s! Notre logiciel utilise un bug Java présent
    dans les serveurs Amazon.

  63. What percentage of time and emotional energy does the
    management team routinely devote to revenue growth.
    000 followers on Facebook or 10 thousands of email subscribers.
    If people are able to share your content with their followers, you’ll find that your
    reach begins to expand exponentially, and so will your profits.

  64. Hello, I think your website might be having browser compatibility issues.

    When I look at your blog site in Safari, it looks fine but
    when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that, superb blog!

  65. F*ckin’ tremendous issues here. I am very glad to look your article. Thank you so much and i am taking a look forward to contact you. Will you kindly drop me a mail?

  66. John Muilenburg

    This site is just awesome. I’ve looked these details a whole
    lot and I realised that is good written, easy to understand.
    I congratulate you because of this article that I am going to recommend
    to prospects around. I ask you to visit the gpa-calculator.co site
    where each learner or university student can find ratings grade
    point average levels. Success!

Leave a reply to cosmetic dentistry Cancel reply