test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • nokki00 Friend
    #197606

    t3_bs3_blank

    How can I add a module beside Main Menu section. I would like a search module next to the parent menu items. Example

    home about us – contact us – search module

    swissa Friend
    #534485

    If you check the documentation you’ll see a section all about layouts, how to add a new block and how to add a module position to a block.

    http://t3-framework.org/documentation/bs3-layout-system#add-layout

    nokki00 Friend
    #534499

    I saw that but didn’t get why you couldn’t add a module to the mainmenu block from the start. No worries thanks!

    Scott Lavelle Friend
    #534516

    Hey nokki00,

    You can do this if you edit the php file sin the template area. This can’t be done in the back end.

    If you go to the /templates/t3_bs3_blank/tpls/blocks/mainnav.php

    you will see a section that holds the main nav. You will need to modify this so that it doesn’t hold the whole container area of 12 columns. Then you can add another div that takes up the remainder of the width (to 12 columns) such as an 8 columns space for the navbar and 4 for the search module, and put the part that holds the search like it in the header.php, like this


    <div class="head-search <?php $this->_c('head-search') ?>">
    <jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" />
    </div>

    I know this isn’t exactly what you need to do, but you should be able to figure it out from there. It will certainly take some trial and error to get it exactly right. You will also need to test this to be sure that you haven’t messed up the responsive parts of it.

    Does this help?

    Scott Lavelle - Technical Resource Solutions, LLC
    Certified Joomla Administrator

    nokki00 Friend
    #534536

    It sure does! I was on the right track too. I just didn’t think something so simple needed a block of code and I don’t mind adding the code to get the results. I will make it fit via the ini or css too.

    Thanks!

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

This topic contains 5 replies, has 3 voices, and was last updated by  nokki00 10 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum