VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: gap underneath banner

gap underneath banner 08 Aug 2013 15:36 #2701

Hi,
On my home pages at the moment I'm using the slideshow/banner and home clr modules, but not the main body just yet. Is there a way to get rid of the gap under the banner?
Thanks
www.pavadita.com/newsite/index.php/nl/

  • Posts:6
  • spaghetti
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: gap underneath banner 28 Aug 2013 16:36 #2855

The gap is controlled by padding in template.css. The dafault for this template is

#jf-content .main {
padding: 120px 0 60px;
}

This is for all the pages but home, because in the css we've also

.home #jf-content .main {
padding: 0;
}

The problem is that in a multilanguage site "home" is no more "home"... therefore the padding is applied to all the pages, even the language-dedicated homes.
My not-so-good solution is to reduce the padding, i.e.

#jf-content .main {
padding: 60px 0 60px;
}

Maybe someone else can provide a better suggestion...

Re: gap underneath banner 25 May 2016 22:59 #8877

I got the same topic.
Got any ideas?
Thank u & vibezzz !!!
J.C. Arana

  • Posts:20
  • Karnatz
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: gap underneath banner 26 May 2016 03:00 #8883

In the index.php (/templates/jf_calla-exteriors/index.php), find:
 
if ($menu->getActive() == $menu->getDefault()) {
$bodyClass = ' home';
}
 

and modify to:
 
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) {
$bodyClass = 'home ';
}
 


This code is above the opening <body> tag.
@Karnatz, you added into <body> tag.

joomfreak

  • Posts:2732
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: gap underneath banner 26 May 2016 20:47 #8888

Hi dear friend.
i am trying to make that code work, but i got no answer... still the same .
Thanks anyway, i do appreciate your help.
K.
J.C. Arana

  • Posts:20
  • Karnatz
  • Junior Boarder
  • OFFLINE
  • Karma: 0

Re: gap underneath banner 27 May 2016 02:57 #8890

Can you please send me the super admin access via private message system?

joomfreak

  • Posts:2732
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
  • 2
Time to create page: 1.33 seconds
Friday 19 April 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.