T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Michael
  2. General Discussion
  3. Thursday, 19 September 2013
  4.  Subscribe via email
Hi to all,

i need to resize the left and right module positions.

For my style the default moduls are to wide.
How can i make it smaler ?

Thanks for youre Help.
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Michael Struck,

I am not sure what you want you change since on T3 Blank there are many layout to change.
They are almost the same, though you need to figure out which layout you are using and make change of it.

Please open \templates\[your template]\tpls\blocks\mainbody.php

// Layout configuration
$layout_config = json_decode ('{
"two_sidebars": {
"default" : [ "span6 offset3" , "span3 offset-9" , "span3" ],
"wide" : [],
"xtablet" : [],
"tablet" : [ "span12" , "span6 spanfirst" , "span6" ]
},
"one_sidebar1": {
"default" : [ "span9 pull-right" , "span3" ],
"wide" : [],
"xtablet" : [ "span8 pull-right" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"one_sidebar2": {
"default" : [ "span9" , "span3" ],
"wide" : [],
"xtablet" : [ "span8" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"no_sidebar": {
"default" : [ "span12" ]
}
}');

Here the configuration for the mainbody layout.

"default" : [ "span6 offset3" , "span3 offset-9" , "span3" ]

It mean, in default state (desktop window), the component will has span6 (width in bootstrap), sidebar-1 will be span3, span 2 will be also span3.
You can change it to "default" : [ "span8 offset2" , "span2 offset-10" , "span2" ], so it will make two sidebar smaller and the main component will be wider


It require some knowledge about bootstrap grid and php to change it.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

thanks for youre answer.

Yes i was using the T3-Blank template.
OK for my understandig:

In the mainbody.php the default line means:

"default" : [ "span6 offset3" , "span3 offset-9" , "span3" ],

"span6 offset3" = main component
"span3 offset-9" = left side
"span3" = right side

is this right?

thanks

Michael
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Yes, that right
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
ok, it works :)

another question: how can i resize the "position-0" i want to change the padding/margin and the width .

thanks


Michael
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Michael,

I am not sure what you are playing with position-0
For markup, you can change the wrapper span class (width).
For css, you can overwrite the width/padding/margin of block.

You should have some knowledge about php and css to do it.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
I have the same question, I have tried to follow the above answer in my template but it didn't work for me the code is as follows:

$layout_config = json_decode ('{
"two_sidebars": {
"default" : [ "' . ($allowsidebar ? 'span4 offset4' : 'span12') . '" , "span4 offset-8" , "span4" ],
"wide" : [],
"xtablet" : [],
"tablet" : [ "span12" , "span6 spanfirst" , "span6" ]
},
"one_sidebar1": {
"default" : [ "' . ($allowsidebar ? 'span8' : 'span12') . ' has-sidebar1 pull-right" , "span4" ],
"wide" : [],
"xtablet" : [ "' . ($allowsidebar ? 'span8' : 'span12') . ' has-sidebar1 pull-right" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"one_sidebar2": {
"default" : [ "' . ($allowsidebar ? 'span8' : 'span12') . ' has-sidebar2" , "span4" ],
"wide" : [],
"xtablet" : [ "' . ($allowsidebar ? 'span8' : 'span12') . ' has-sidebar2" , "span4" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
},
"no_sidebar": {
"default" : [ "span12" ]

when i change the span and offset settings to any other it is not taking effect I am using JA MAGZ Template. Please help

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.