How to resize top-bar 1 and 2 in the 1block

More
3 years 7 months ago #8808 by Zenker
Zenker created the topic: How to resize top-bar 1 and 2 in the 1block
Hello,
I installed the quick start package and updated the template 1.0.3 and the framework 4.6.0.
(By the way the version number is not visible at the download page, please add it to the date when you upload the update).

Now I want to resize the first column of the template with the standard module positions top-bar1 and top-bar2.
Top-bar1 should be smaller and top-bar2 should fill the rest of the line.

I disabled Responsive layout but there are no grey corners to move the size.

What do I wrong?

Thanks for help.

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

More
3 years 7 months ago #8826 by marcin
marcin replied the topic: How to resize top-bar 1 and 2 in the 1block
Hello,

The topbar section is not a flexiblock.
You can change the width of topbar modules in the code only.
To do that, please edit the top-bar.php file located in:
/templates/jm-services/tpl/blocks/
On the screenshot I marked the values that you need to change. The values are based on Bootstrap grid, please note the sum of the numbers should be equal to "12":



More about Bootstrap grid:
www.joomla-monster.com/knowledge-base-ar...ootstrap-grid-system

Regards,
Marcin
Attachments:

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

More
3 years 7 months ago - 3 years 7 months ago #8845 by Balcerzak
Balcerzak replied the topic: How to resize top-bar 1 and 2 in the 1block
Hey,

same problem with top 1-1/1-2
I've tried to change it in top1.php file in the same folder, but there is no line:
$topbar1span = ($this->checkModules('top-bar2')) ? '6' : '12';
$topbar2span = ($this->checkModules('top-bar1')) ? '6' : '12';
or similar

i've tried to change the size in responsive site settings but it also doesnt work
i'm trying to put two modules in one line:
dj-image slider and roksprocket quotes module (dj image for 9/12 and roksprocket on 3), but when im changing both positions for "top1-1" and changing bootstrap size of dj-image for 9 it doesnt work also.
no idea what to try next.
I suspect it might be a problem with the size of roksprocket, but obv im not sure.

How can I resize it? pls help.
and thanks!

o.
Last Edit: 3 years 7 months ago by Balcerzak.

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

More
3 years 7 months ago #8847 by marcin
marcin replied the topic: How to resize top-bar 1 and 2 in the 1block
Hello,

For top1 modules you need to use Layout Builder and there should be no problem to set the top1-1 postion to "9" and the top1-2 to "3".

On the "Customize Layout Structure" tab I suggest you to choose "2" modules for the top1 block otherwise you may need to disable the full width recalculation:
www.joomla-monster.com/knowledge-base-ar...-width-recalculation

If this will not help you, please leave us a ticket with your url address and Joomla access.

Regards,
Marcin

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

More
3 years 7 months ago #8851 by Balcerzak
Balcerzak replied the topic: How to resize top-bar 1 and 2 in the 1block
hey, unfortunately it doesnt work and what's worst i cant give you an url 'cause im building in on my localhost at the moment.

should i sent you some prt scrs?

As you said, I've choosed 2 modules, and i've change their size in layout builder/customize responsive layout to "9" and "3" because I cant change it in layout structure. but no metter what im doing it doesnt change the preview of the main page, it keeps the 6/6 size of both modules.

i wonder if it might be a problem with roksprocket module, because I cant change the bootstrap size of it in the module settings

thanks Marcin for any help you'll give! ;)

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

More
3 years 7 months ago #8852 by Balcerzak
Balcerzak replied the topic: How to resize top-bar 1 and 2 in the 1block
ok! got it! the problem was that menu items were not assigned to the style I was working on. I was stupid :) but your suggestions were helpful anyway. problem solved!
thx!

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

Time to create page: 0.306 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-2018 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.