test
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • dmason Friend
    #161623

    Can anyone tell me why the main menu seems to be displaying on two line sometimes? The “Contact Us” page should be on the same line as the others. Usually by navigating to another page, it will display correctly.

    Here is my site: http://www.conciergefinancialoffice.com

    Please help!
    11867


    1. Screen-shot-2011-03-17-at-9.52.46-PM
    Phill Moderator
    #382083

    Have you applied any custome code to center the menus? It appears the width of that element is less than you require to fit all your menu items.

    dmason Friend
    #382084

    No custom code to the menu. You helped me apply custom code to module positions, but those are working fine. This seemed to start happening once I changed the font in the template manager. By navigating to another page on the site, the menu seems to fit fine.

    I actually previously had more menu items (wider), so I don’t understand why this is now happening.

    Phill Moderator
    #382085

    I ask because your menu is centered. Out of the box on the demo the menu is left alligned. Your code also appears to be setting up an element width for the menu but out of the box there is no such code. Something must have been changed somewhere.

    dmason Friend
    #382088

    Hi, yes i did make a change to have the menu centered. I followed instructions in this thread. http://www.joomlart.com/forums/topic/ja-droid-main-menu-how-to-center-it-under-the-banner-logo/

    Phill Moderator
    #382090

    Which version of Joomla are you using? 1.5 or 1.6?

    dmason Friend
    #382093

    1.6.

    Thanks.

    huypl Friend
    #382264

    Hello dmason,
    I use firebug to check your site. I notice that you have set a fixed-width to your mega menu.
    <div class=”main-inner1 clearfix ” style=”width :561px;”>
    This is the reason why your menu apprears in two lines. The correct code for this div tag is:
    <div class=”main-inner1 clearfix>
    Did you modify the width of the mega menu?

    dmason Friend
    #382524

    <em>@huypl 228837 wrote:</em><blockquote>Hello dmason,
    I use firebug to check your site. I notice that you have set a fixed-width to your mega menu.
    <div class=”main-inner1 clearfix ” style=”width :561px;”>
    This is the reason why your menu apprears in two lines. The correct code for this div tag is:
    <div class=”main-inner1 clearfix>
    Did you modify the width of the mega menu?</blockquote>

    No I didn’t. I only made the following changes http://www.joomlart.com/forums/topic/ja-droid-main-menu-how-to-center-it-under-the-banner-logo/

    Can I change the code you were looking at in Firebug to make the menu wider? Why would this problem only occur on some pages and not others?

    Many thanks for your help.

    Phill Moderator
    #382539

    No, you cannot change the code as it is generated by the edit you made to center the menu. We would need to edit that code and simply add a few pixels to the generated width.

    Please post the code from your edit here so we can look at it.

    dmason Friend
    #382548

    As per the instructions in this thread http://www.joomlart.com/forums/topic/ja-droid-main-menu-how-to-center-it-under-the-banner-logo/ I copied the file of pluginssystemjat3base-themesdefaultblockshead.php,put it into the folder of templatesja_droidblockshead.php then opened the copied file and added the following code to the head.php file

    [PHP] <script type=”text/javascript”>
    //<!]>
    </script> [/PHP]

    Then added the following to templatesja_droidcsstemplate.css

    <script type=”text/javascript”>
    //<!]>
    </script>

    Phill Moderator
    #382550

    Try changin the +5 in both parts to +10 and see if that makes a difference.

    dmason Friend
    #382567

    Thanks, I’ve tried making that change, but am unsure if it solved the problem or not. When I view the site in different browsers, sometimes it happens, and sometimes it doesn’t. I have emptied the cache etc. It only seems to be occurring on the home page.

    Also, I was incorrect. I didn’t add the following code to the template.css file.

    <script type=”text/javascript”>
    //<!]>
    </script>

    I added this:

    .main .main-inner1 { margin-left: 0; margin-right: 0;margin:0 auto }
    .ja-megamenu { margin: 0; padding: 0;float:left }

    Can anyone let me know if this seems to be happening when you view the site?

    Many thanks.

    dmason Friend
    #383668

    Can anyone help me work this out?

    Sherlock Friend
    #383787

    Dear dmason,

    You can try to replace +10 by +30 or even +40
    I think that would help !

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

This topic contains 15 replies, has 4 voices, and was last updated by  Sherlock 13 years, 9 months ago.

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