You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I'm trying to add a featured product at the top of the left sidebar, above the main menu list but I can't get it to appear where I want.
I tried creating a widget with a display group of SIDEBAR0 and edited skin.php as follows:
<div id="kskin_col2" class="kgridbox kgridxcol25 kgridwidethin kflex2thin kflex2mid kflex1wide"> <div class="kgridmidhalf"> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR0', 'display' => 'flex-separate')); ?> </div> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR1', 'display' => 'flex-separate')); ?> </div> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR2', 'display' => 'flex-separate')); ?> </div>
I have the Main Menu on the left as SIDEBAR1 and some banner ads below in SIDEBAR2, however when I try to add the featured product, it appears with the other banner adverts.
I've also tried chaning the Display Order, but that still doesn't work.
If you look at https://affordableleather.co.uk/ it's the guitar pedal that appears in between PayPal and Free Delivery.
This is very frustrating, please can someone tell me how to fix this?
Last edited by Graham (09-22-2024 06:29:52)
Offline
You've got a div open and two div closures in there that are messing with your view. Change to:
<div id="kskin_col2" class="kgridbox kgridxcol25 kgridwidethin kflex2thin kflex2mid kflex1wide"> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR0', 'display' => 'flex-separate')); ?> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR1', 'display' => 'flex-separate')); ?> <?php $this->include_namespace('core','skinwidgets',array('group' => 'SIDEBAR2', 'display' => 'flex-separate')); ?> </div>
Offline
e beam sterilization equipment
Last edited by frankenstein (10-02-2024 04:51:40)
Offline