Hello Ciaran,
is it possible in template Novah to have only the menu sticky (div header_nav), without div header_main?
Thanks, Tom
if($this->params->get('sticky_sw')) {
// Sticky Div
$document->addScript('templates/'.$this->template.'/js/jquery.sticky.min.js', false, true);
$document->addScriptDeclaration('
jQuery(window).load(function(){
jQuery("#container_header").sticky({
topSpacing: 0
});
});
');
}
if($this->params->get('sticky_sw')) {
// Sticky Div
$document->addScript('templates/'.$this->template.'/js/jquery.sticky.min.js', false, true);
$document->addScriptDeclaration('
jQuery(window).load(function(){
jQuery(".header_nav").sticky({
topSpacing: -35
});
});
');
}
.header_nav {
left: 0;
right: 0;
}
@media only screen and (min-width: 1178px) {
.header_nav {
width: 1178px;
}}
@media only screen and (min-width: 1178px) {
.header_nav {
width: 1178px;
margin: auto;
}}