customising formal_white theme

customising formal_white theme

by Gil Hardwick -
Number of replies: 1
Is the right place to ask about customising?

The formal_white theme is nice, and works well, but I would like to be able to add my own standard logo and menu bar to the facility.

Apologies that my DNS is still not there, but my site can be accessed via:

http://58.167.216.132

Click on any of the 'seminars', 'tutorials' or 'library' tabs to see what I have done with the phpBB2 and Gallery2 installations.

Any help would be grand.

Kind regards,

Gil



Average of ratings: -
In reply to Gil Hardwick

Re: customising formal_white theme

by Mauno Korpelainen -

Open header.html of your formal_white theme and find

...if ($home) {  // This is what gets printed on the home page only
?>
    <div id="header-home" class="clearfix">
        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo.jpg' /></h1>
        <div class="headermenu"><?php echo $menu ?></div>
    </div>

<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
?>
    <div id="header" class="clearfix">
        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo_small.jpg' /></h1>
        <div class="headermenu"><?php echo $menu ?></div>
    </div>
<?php } ?>...

Replace those yellow tags with your logo and menu system tags (map) and if you want to use login-links leave red tags inside these if home {...} and else if (heading) {...} tags. You may include your own css to formal_white css files

By the way - it looks like you have some problems with rendering css. Check your config.php with notepad to see if there is an empty row at the end (or something else after last signs ?>