Main-Menu on position top-bar1

More
1 year 3 months ago - 1 year 3 months ago #10404 by jbmonster
jbmonster created the topic: Main-Menu on position top-bar1
I use the template jm-internet and like to move the main-menu from top-menu-nav to the position top-bar1.
But the positions top-bar-1 and top-bar-2 divide the entire width to 50% each.
How can I change the width from top-bar-1 to 70% and the width from top-bar-2 to 30%?
Then there would be enough room for the main-menu.
Thanks
I've found that top-bar-1 and top-bar-2 get the width of 50% through the variable .row-fluid .span6.
Can I assign top-bar-1 .row-fluid .span8 and top-bar-2 .row-fluid .span2? If yes how?
Last Edit: 1 year 3 months ago by jbmonster.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10405 by marcin
marcin replied the topic: Main-Menu on position top-bar1
Hi,

Go to:
/templates/jm-internet/tpl/blocks/top-bar.php
On the top of the file, you can change the span value for both module positions:



Regards,
Marcin
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #10406 by jbmonster
jbmonster replied the topic: Main-Menu on position top-bar1
Thanks, that it, the menu is now on top-bar-1.

But the menu is displayed on all screen sizes and is not hidden on small screens. What do I have to do?
At first I also had the DJ MegaMenu but was asked to update and since then I only have the DJ menu.
Here I can only select the switch to the dropdown menu and nothing more.

I think I found a way. I install DJ-MegaMenu light and then I can select a setting for mobile devices.
Thanks
Last Edit: 1 year 3 months ago by jbmonster.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10407 by jbmonster
jbmonster replied the topic: Main-Menu on position top-bar1
Thanks, that it, the menu is now on top-bar-1.

But I made this change in the original file, will this be overwritten by an update? If so, how can I prevent this?

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10408 by marcin
marcin replied the topic: Main-Menu on position top-bar1
Hi,

Yes, it will be overwritten.
Alternatively, you can add styles to the custom.less file:

For example:
#jm-top-bar #jm-top-bar1 {width: 70%;}
#jm-top-bar #jm-top-bar2 {width: 30%;}

More about custom.less:
www.joomla-monster.com/documentation/tem...sed-on-ef4-framework

Regards,
Marcin

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10409 by jbmonster
jbmonster replied the topic: Main-Menu on position top-bar1
Thats the right way.
Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.281 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.