Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8665497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:29:39+00:00 2026-06-12T17:29:39+00:00

I have a Joomla 2.5 page, and the frontpage should be without a leftmenu

  • 0

I have a Joomla 2.5 page, and the frontpage should be without a leftmenu and the rest of the site with one. (i would ask this in the joomla forum, but it seems to be down)

If i set up my page like this (very simply sketched):

<div id="container">
<div id="left"></div>
<div id="content"></div>
</div>

You usually set the width of the left and the content, and float it left and right.

If you just set the left div to float left, and have no width of the content div, i can style the ul tags to set the left divs width, as it will expand to the ul width.
This however makes the content wrap around the left menu, if the content is higher than the leftmenu.

What is the best way to do this? Is there a joomla php constant i can read to see if the left menu is set to be shown, or can it be made purely by CSS somehow. (and if both exists, which is better?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:29:40+00:00Added an answer on June 12, 2026 at 5:29 pm

    There is a simple solution for you – collapsible module positions. In index.php you want to do something like this:

    <?php if ($this->countModules('left')) : ?>
    <div id="left"><jdoc:include type="modules" name="left" style="xhtml" /></div>
    <?php endif; ?>
    

    What this does is check to see if there are any modules in the left module position. If there are, then it adds the code in and displays the modules. If not, it completely skips the code and does not display at all on the page so you don’t end up with useless empty divs on your page.

    Now you can use the module manager to assign modules to the pages you want them on. Any position that is not being used is simply ignored.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i m developing one joomla site,, i have assign one article to home page.
I have a joomla project. In this the text editor is tiny mace. But
Hi I have a Joomla site with a template that has 2 columns. One
So I have this Joomla website going and I'm creating a blog page. All
I have a site, which is being built with Joomla 2.5, and this site
I have Joomla virtuemart site and I accidently uninstalled Virtuemart but luckly I had
I'm working on a single page Joomla site. It's very basic, but I'm having
I have integrate joomla & phpbb3.But in that case when i refresh the page
I have a joomla site running but recently I noticed a script tag at
I have a page with joomla and Chronoforms on it. How do i use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.