WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
if(!isset($page_id) OR $page_id==4) {
if(!isset($page_id) OR $page_id==4 OR $page_id==28 OR $page_id==56) {
if(!isset($page_id) OR $page_id==159) {
$slider_page_ids = '586,580,541';
include('snippets/2col-intro.php');
there is a switch for it in index.php of this templateLine 14: $isstartpageits set to FALSE as standard and to TRUE, if the condition in line 27 is correct, so that the snippets only works on the start page index.php of this template // Line 27 - must have the page_id from your startpageOriginalcodeCode: [Select]if(!isset($page_id) OR $page_id==4) {if you need it also on other pages, use a code like this with your wished page_id'sCode: [Select]if(!isset($page_id) OR $page_id==4 OR $page_id==28 OR $page_id==56) {in my example, my startpage has the ID = 159Code: [Select]if(!isset($page_id) OR $page_id==159) {front.php // line 75here the page_id's from your wished slider-pages like my exampleCode: [Select]$slider_page_ids = '586,580,541';front.php // line 79Code: [Select] include('snippets/2col-intro.php');this line produceed a white screen in my test installation, if i use it together with the responsive slider, dont know, why and didnt understandif you have the same problem, deactivate this line with a // or # in the front of this line or include another snippet, to see the effects
One more thing: I added two extra blocks in info.php file (content 4 and content 5)
if I insert <?php $page_content_4; ?> and <?php $page_content_5; ?> to the 2col-content snippet, it comes out with nothing.. Why?
<?php echo page_content(4); ?>
<?phpob_start();page_content(4);$page_content_4 = ''.ob_get_contents();ob_end_clean();ob_start();page_content(5);$page_content_5 = ''.ob_get_contents();ob_end_clean();?>
<div class="col-md-9"><div class="main-content">Content 4<br><?php echo $page_content_4; ?></div></div><div class="col-md-9"><div class="main-content">Content 5<br><?php echo $page_content_5; ?></div></div>