WebsiteBaker Support (2.12.x) > Modules
Minislider within a div
johnbroeckaert:
Hello,
I want to use mini slider in a bootstrap template that does not use different blocks. Mini slider therefore take the whole space inside the block during installation and I want a smaller edition. Have tried with the code2 module to make two columns and put mini slider in there.
Code 2:
--- Code: ---<div class = "row">
<div class = "col-sm-4">
--- End code ---
mini slider
Code 2:
--- Code: ---</ div>
<div class = "col-sm-8">. col-sm-8 </ div>
</ div>
--- End code ---
But that does not work. Where could I set this so that mini slider only occupies part of the (main) block?
Thank you!
dbs:
Hi, this should be possible with
WB Settings > Advanced Options > Server Settings > Section Anchor: none (as text, instead of Sec)
With "Sec" every Section is in a own div, therefore you can't use 3 sections in one div.
jacobi22:
i use none a default anchor text on my page, but it doesn't matter, what i use there. a different anchor give me another div inside of my two blocks here, no other effect on minislider or my grid
i use w3css and the w3css-gridsystem.
here a screenshot: normal with for this block: 900px, two blocks with w3-col m6 l6, one div around, original picture width: 1000px
Code in my template: (i'm sure, bootstrap use the same scheme), it's normalize my contaktbox, thats why some hard coded text there, maybe you can use it as example
<div class="w3-container w3-content w3-padding-16" style="max-width:900px" id="contact">
<h2 class="w3-wide w3-center">KONTAKT</h2>
<div class="w3-row w3-padding-16">
<?php if(trim($contact_rightBlock)!='' ){?>
<div class="w3-container w3-left-align w3-padding-4 w3-col m6 l6 w3-green" id="contactleft">
<?php echo $contact_leftBlock; ?>
</div>
<div class="w3-container w3-left-align w3-row-padding w3-padding-4 w3-col m6 l6 w3-light-blue" id="contactright">
<?php echo $contact_rightBlock; ?>
</div>
<?php
}else{
?>
<div class="w3-container w3-block w3-left-align w3-row-padding">
<?php echo $contact_leftBlock; ?>
</div>
<?php
}
?>
</div>
</div>
johnbroeckaert:
Thank you both (Y) @jacobi22 and @dbs
I let you know witch I 've used to solve the problem.
johnbroeckaert:
--- Quote from: dbs on January 17, 2019, 12:36:39 PM ---Hi, this should be possible with
WB Settings > Advanced Options > Server Settings > Section Anchor: none (as text, instead of Sec)
With "Sec" every Section is in a own div, therefore you can't use 3 sections in one div.
--- End quote ---
@ DBS
This is not going to work because every section still gets the class section.
Navigation
[0] Message Index
[#] Next page
Go to full version