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.
Hi
I would like to use up some of the wasted space that I have in the header between my logo on the left side and the cart icon on the right-hand side. I would like to include one or two banners in this area, along the lines of what has been used at .
Having a look at the site I see that skin_header_topbanner has been added. Is it now just a case of creating the banners and following the manual to create/run them or is there something more to getting it to function.
Many thanks
Terry
Offline
I haven't done anything to it. I've just had a look at djangobooks.com and like where they've placed it by their logo. On my site this is currently wasted space, so I thought I would make use of it.
Terry
Offline
Under System | Displays | Skin Widgets, assign the banners skin widget to a desktop group named 'TOPBANNER'. Then in your skin's skin.php call, place:
<?php $skinfunc->xnamespace('core','skinwidgets','TOPBANNER'); ?>
Where you want it. Upload your banners as skin widget types, and enter the group for each as 'TOPBANNER' and you'll be good to go.
Offline
Nick, I've added the following to my skin.php
<div id="skin_header_topbanner"> <?php $skinfunc->xnamespace('core','skinwidgets','TOPBANNER'); ?> </div>
However, when I look at the page the following DIV is picking up the wrong style information.
<div id="cms_skinwidget_banners" class="skin_widgetclass_HEADER" style="width: 195px; margin-left: auto; margin-right: auto">
Where do I look to correct this info?
Thanks
Terry
Last edited by tguswell (07-06-2015 12:14:32)
Offline
You will find that inline CSS in {private}/apps/cms/CMS/includes/skinwidgetbanners.php. You can change it there, or add:
#cms_skinwidget_banners {width: auto !important; margin: 0 !important;}
To your CSS file.
Offline
Nick
The line:
$bannerwidth = $this->globals('core_settings.cms.banners_skinwidgetwidth');
in skinwidgetbanners.php keeps picking up the value 195, whereas I've thought I'd set the width for skin_header_topbanner (in all.css) for it to be 460px. I've hardcoded the 460 value into $bannerwidth and everything now seems okay, but I would like to know where I've gone wrong?
Thanks
Terry
(The full-time shop owner and part-time programmer)
Last edited by tguswell (07-07-2015 12:04:19)
Offline
Terry,
you can set the banner width here:
System Dashboard > Website > Component > Settings > Banner Advertisements
Offline