-
AuthorPosts
-
April 12, 2017 at 8:19 am #1025948
Hi,
I am finishing a small site (http://disegnareilweb.altervista.org/), and I would like to add a "top bar" above the navbar where putting a custom module with some social icons.
Is there a way to do it?
Thanks in advancePankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 15, 2017 at 8:01 pm #1026602Edit…
-
April 15, 2017 at 8:03 pm #1026605
Thanks you for your reply!
I have tried to follow the documentation you have linked and I thought it worked well. In the backend of the template I can see my new "topbar" just above the mainmenu and head-search (see first attachment).
Unfortunately this new block remains under the main menu, as you can see in my second attachment.
Into the corporate.php I have added`
<?php $this->loadBlock ('topbar') ?>
in this way:
<div class="t3-wrapper corporate"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas --> <?php $this->loadBlock ('topbar') ?> <?php $this->loadBlock('header') ?> <?php $this->loadBlock('slideshow') ?> <?php $this->loadBlock('spotlight-1') ?> <?php $this->loadBlock('mainbody') ?> <?php $this->loadBlock('spotlight-2') ?> <?php $this->loadBlock('spotlight-3') ?> <?php $this->loadBlock('breadcrumb') ?> <?php $this->loadBlock('footer') ?> </div>
I have also added a "topbar.php" file in tpls/blocks:
<?php /** * @package T3 Blank * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; ?> <!-- TOPBAR --> <nav class="wrap t3-topbar <?php $this->_c('topbar') ?>"> <div class="container"> <jdoc:include type="modules" name="<?php $this->_p('topbar') ?>" /> </div> </nav> <!-- //TOPBAR -->
Where I am wrong? Thanks in advance for your help and for your patience!
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 17, 2017 at 1:25 am #1026758Hi
Kindly remove the sticky class for the menu and check.
See this: http://prntscr.com/ex9ubb
The menu is sticky so it always on the top and not showing the topbar.save and check the site.
Regards
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)This topic contains 4 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-