Adding a "top bar" above the navbar - JoomlArt
JA Company download now availableDownload Now
30% OFF this Easter - coupon: JAEASTERBuy now
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • limma Friend
    #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 advance

    Pankaj Sharma Moderator
    #1025979

    Hi
    Here is documentation for the layout system that helps you to know about layout and to add new blocks/positions.

    Regards

    limma Friend
    #1026602

    Edit…

    • This reply was modified 1 week, 3 days ago by  limma.

    1. CorporateLayout_Topbar
    2. ModulePositions
    limma Friend
    #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!

    • This reply was modified 1 week, 3 days ago by  limma.

    1. CorporateLayout_Topbar-1
    2. ModulePositions-1
    Pankaj Sharma Moderator
    #1026758

    Hi
    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

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Pankaj Sharma 1 week, 2 days ago.

You must be logged in to reply to this topic.