CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Disappearing joomla menus with any civicrm component in front-end
Pages: [1]

Author Topic: Disappearing joomla menus with any civicrm component in front-end  (Read 2246 times)

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Disappearing joomla menus with any civicrm component in front-end
July 06, 2009, 05:45:48 pm
Hi,

My site is not live, so I've attached 2 screenshots.

The one screenshot shows the 3 menus (headings have blue background) as they should be, with a joomla article.

The other screenshot shows that the 3 menus get covered up when I have any CiviCRM content, such as create profile or a contribution page. The menus are still there in the page source, just covered.

I've tried a bunch of css fixes, but nothing yet.

Thanks very much,
Phil

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Disappearing joomla menus with any civicrm component in front-end
July 06, 2009, 06:19:09 pm
Phil - I find the Firebug plugin for Firefox to be a good tool for debugging css confilcts like this. You can "inspect" any element and modify the css in the browser to see what changes you need to fix problems.
Protect your investment in CiviCRM by  becoming a Member!

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Disappearing joomla menus with any civicrm component in front-end
July 06, 2009, 07:13:16 pm
Hi Dave,

Thanks, yes I'm using firebug. I'm not sure if it's a css problem, because I can't seem to do anything to make the menus appear with css. I can shift the CiviCRM part down, but the menus are still covered.

Not sure what other info I can give, so I guess I'll keep playing. I guess I should have said I'm using Joomla 1.5.10 and CiviCRM 2.2.3.

Thanks,
Phil

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Disappearing joomla menus with any civicrm component in front-end
July 09, 2009, 07:57:17 pm
Well, after many hours, I've figured something out. If I remove #mainmodules from the following line, the menus are visible again, but it throws a bunch of other things off in the site. It has something to do with the overflow: hidden property. When I change it to overflow: visible, I get the same effect (i.e. menus are visible, but it messes up other things).

#showmodules, #mainmodules, #mainmodules2, #mainmodules3, #mainmodules4 {overflow: hidden; margin-bottom: 20px;}

At least that's a start...

Phil

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Disappearing joomla menus with any civicrm component in front-end
August 06, 2009, 09:03:07 pm
Okay, I now have my site up so that I can show the issue. If you go to the url below and then click the 'Join SOUL' menu link (bottom link in the middle column menu in the top center of the page), you can see that the CiviCRM form covers up my 3 column menus (you can still see the blue tops of them) and my footer. This happens with any CiviCRM Profile in my Joomla.

http://www.organiclandcare.org/joomlasoul/index.php?option=com_content&view=article&id=1&Itemid=2

I swore this went away for awhile, but I just uploaded my site again and it's back. I've spent hours on it, so if anyone has any advice, I'd be grateful. I no longer think it's a css issue, but perhaps some kind of setting, or path, or something in the backend or database.

Thanks,
Phil

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Disappearing joomla menus with any civicrm component in front-end
August 07, 2009, 03:07:51 pm
Phil - The problem is caused by a naming conflict between a css class used by your menu block and one used in civicrm.css.

You "menus" are inside this div:
<div class="spacer w33" id="mainmodules">

... with class of "spacer".
 
In css/civicrm.css - the spacer class is defined like this:

div.spacer, .spacer {
clear:left;
height:5px;
}

Removing "height:5px" fixes the problem. However if might cause some other (probably minor) spacing problems in CiviCRM pages. You could try changing the above to this (to narrow down the part of the page to which it applies):

#crm-container div.spacer, #crm-container .spacer {
clear:left;
height:5px;
}

I "discovered" this using Firebug within Firefox on your page - "Inspect Element" tool.
Protect your investment in CiviCRM by  becoming a Member!

philraymond

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
Re: Disappearing joomla menus with any civicrm component in front-end
August 08, 2009, 07:57:59 am
It worked!

Thank you so much, Dave. I use Web Developer, but never took the time to get comfortable with Firebug. I'm going to get on that, though.

Thanks again,
Phil

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Disappearing joomla menus with any civicrm component in front-end

This forum was archived on 2017-11-26.