Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • monsterhunter Friend
    #202790

    The megamenu width in Uber template is 100%
    How can I have it the same width as the width of the blog?

    See attachment-image.

    Thanks


    1. joomlartuber
    Pankaj Sharma Moderator
    #555351

    Hi its the same in the all layout . i am not sure what exactly is issue .
    Header is divided between logo , Main nav and right side module positions .
    Please share a screenshot of problem with the page that you want .
    and add your working site url here . so that i can check the issue you are facing .

    monsterhunter Friend
    #555431

    I’m looking if I can use this template for a blog.
    I don’t need most of the elements in this template but i like the layout of the blogsection.
    The blog is centered on the page so i would like to have the menu centered too (in all layout because I will only use the blog).
    I changed it in photoshop so you can see what I mean.

    Thanks


    1. ubernew
    Pankaj Sharma Moderator
    #555432

    First If you want to to this only for Blog layout in that case you need to use a different header file for this template style .
    For example if your are using default layout for your blog template style .
    you need to customize the header.php for this layout .
    Go to templatesubertplsdefault.php
    you can see it is using header-1
    so go to templatesubertplsblocksheader-2.php file .
    make a duplicate file for this . for example Header-blog.php
    now open header-blog.php
    find this code

    <div class="row">
    and change it into

    <div class="row"style=" max-width: 86%; margin-left: auto; margin-right: auto; ">

    Now comes back to templatesubertplsdefault.php open this file
    change this code

    <?php $this->loadBlock('header-1') ?>

    into

    <?php $this->loadBlock('Header-blog') ?>

    save and check .
    NOTE : take a back of your site before any change
    Don`t play with your live site .

    Let me know if it helps

    monsterhunter Friend
    #555437

    Thanks so much for this explanation pankajsharma !!!
    Your code works perfect. I changed the 86% to 1150px and it fits ferfect with the blog.

    Thanks again!

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

This topic contains 5 replies, has 2 voices, and was last updated by  monsterhunter 10 years ago.

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