Support Forums

Got a question? Post it here. We'd love to help.

Knowledge Base:

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthormorag
    • CommentTimeJun 28th 2008
     

    Hi!
    Please tell me how to get the language bar back to the top of my frontpage with the elegance theme.
    Thanks!

    •  
      CommentAuthorptrkmkl
    • CommentTimeJun 28th 2008
     

    Now, that you mention it, I'll add returning this to my list of things to-do. I had originally omitted it because I thought it was ugly - how silly of me to forget that it's also useful!

    In the meantime, I offered a fix a while back. Here it is.

    • CommentAuthormorag
    • CommentTimeJun 29th 2008
     

    Thanks!
    the language bar is back!
    Now we need to work on placing it...
    right now' it shows up smack in the middle, asyou can see at http://ez-pc-4u.com/moodle2/moodle/index.php?lang=he_utf8 ,even though I edited the margin-top to be 0px. Whah do I do next?
    Thanks!

    •  
      CommentAuthorptrkmkl
    • CommentTimeJun 30th 2008 edited
     

    I've now created a more elegant fix to the language menu issue in Elegance, and it is now included, by default, in the Elegance theme download (where it should have been all along).

    You can get this fix directly by downloading a fresh copy of Elegance, or just follow these simple instructions to make the fix on your own:

    1. Open header.html with a basic text editor and search for (lines 25 - 28)
    2. <div id="header-home" class="clearfix"> <div id="header-top" class="clearfix"> <h1 class="headermain"><?php echo $heading ?></h1> </div>
    3. Immediately preceding the final closing div (line 28), add:
    4. <div class="headermenu"><?php echo $menu ?></div>

      so that what you end up with is:

      <div id="header-home" class="clearfix"> <div id="header-top" class="clearfix"> <h1 class="headermain"><?php echo $heading ?></h1> <div class="headermenu"><?php echo $menu ?></div> </div>
    5. Save header.html and check that your header menu now appears where it should (in the upper right corner of your front page).

    Now, to make things look a little cleaner, let's reduce the vertical space that the header menu takes up by floating the login info to the left of the language menu.

    1. Open styles_elegance.css with a basic text editor and add the following to the very bottom of that document:
    2. .headermenu .logininfo { float: left;padding-top:2px; }
    3. Save styles_elegance.css and check that your front page now looks like the attached screenshot.
    • CommentAuthormorag
    • CommentTimeJul 1st 2008
     

    o.k. we're getting there...
    There are two more issues with the language bar:
    1. my site is in hebrew which is a right to left language, therefore using your settings put the language bar right on top of the flower (as you can see in the attached image)
    2. Since the header is a dark color it is almost impossible to see the 'you are logged in as' which is also dark. where do I change that?
    Thanks again for your time and effort!

    •  
      CommentAuthorptrkmkl
    • CommentTimeJul 1st 2008
     

    That shouldn't be the case. It appears that you placed:

    <div class="headermenu"><?php echo $menu ?></div>

    below the closing div, when it should be above.

    What you should see in header.html is:

    <div id="header-home" class="clearfix"> <div id="header-top" class="clearfix"> <h1 class="headermain"><?php echo $heading ?></h1> <div class="headermenu"><?php echo $menu ?></div> </div>
    • CommentAuthormorag
    • CommentTimeJul 1st 2008
     

    thanks!
    language bar problem completely solved!
    I really appreciate your help!