7 years 2 weeks ago
I think the easiest way would be to move the contents of the top block file into the nav block.
To stop any changes being wiped on an update, try creating a new file at
/tpls/blocks/nav-custom.php
and then copy the contents of nav.php into that file.
Then open
/tpls/blocks/top.php
and copy the code after the line
defined('_JEXEC') or die;
paste that into the new file at lne 43 (In the latest download) after
<?php if($this->params->get('stickynav')) { ?>
<nav id="navwrap" class="<?php echo $mobiletype; ?>" data-uk-sticky>
<?php } else { ?>
<nav id="navwrap" class="<?php echo $mobiletype; ?>">
<?php } ?>
Then save the file.
In the template admin, make sure you are using a custom layout, and not one that comes with the theme.
Open up the coresponding layout file in the /tpls folder. EG if the layout is called 'Default Custom' the layout file will be called layout-custom.php.
In that file, remove the call to the original top block:
and then change the call to the nav block to point to the new file
$this->loadBlock ('nav-custom')
The top positions should then load within the stickynav.
You may need to update some styling to make the positions look the same after moving them.
Regards,
Rob