OS Property support center

component= sidebar1 =sidebar2 same width

  • sinhoboc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 months ago - 10 years 2 months ago #57130 by sinhoboc
Hi Dam,
This is a great job. :)
I use osp holiday default theme.
How can be set component and sidebars1 and sidebars2 to the same width? (33- 33% -33%).
And can I put sidebar1 to left side (for eg. for main menu)
Thank you,
Last edit: 10 years 2 months ago by sinhoboc.

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

  • Truong Tong Quang
  • Offline
  • Junior Member
  • Junior Member
More
10 years 2 months ago - 10 years 2 months ago #57234 by Truong Tong Quang
Replied by Truong Tong Quang on topic component= sidebar1 =sidebar2 same width
Hi Sinhoboc,
To set component and sidebars1 and sidebars2 to the same width? (33- 33% -33%). Please follow these steps
folder: ospholiday/tpls/blocks/two-sidebar.php
line 19
<div id="t3-content" class="t3-content col-xs-12 col-md-6 col-md-push-3">
change:
<div id="t3-content" class="t3-content col-xs-12 col-md-4 col-md-push-4">
line 28
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars) ?>">
change:
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-4 col-md-pull-4 <?php $this->_c($vars) ?>">
line 34
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars) ?>">
change:
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-4 <?php $this->_c($vars) ?>">
Issue solved, please check it and get back to me.
Thanks
Truong
Attachments:
Last edit: 10 years 2 months ago by Truong Tong Quang.

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

  • sinhoboc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 months ago #57576 by sinhoboc
Replied by sinhoboc on topic component= sidebar1 =sidebar2 same width
HI
this slightly vary in acces route
domain/templates/ospholiday/tpls/blocks/mainbody
and speccailly the line 28

<!-- MAIN CONTENT -->

<div id="t3-content" class="t3-content col-xs-12 col-md-4 col-md-push-4">

<?php if($this->hasMessage()) : ?>

<jdoc:include type="message" />

<?php endif ?>

<jdoc:include type="component" />

</div>

<!-- //MAIN CONTENT -->



<!-- SIDEBAR 1 -->

<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars) ?>" style="T3Xhtml" />

</div>


<!-- //SIDEBAR 1 -->

<!-- SIDEBAR 2 -->

<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars) ?>" style="T3Xhtml" />

</div>


<!-- //SIDEBAR 2 -->

</div>
</div>

have I chosen right php ?

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

Moderators: Mr. DamNguyen Phu Quan