Viewing the short site-name on front page

Re: Viewing the short site-name on front page

by Matteo Scaramuccia -
Number of replies: 0
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Simon,

give the code below a try:

diff -u standardwhite\header.html.orig standardwhite\header.html
--- standardwhite\header.html.orig      Wed Nov 03 09:38:34 2010
+++ standardwhite\header.html   Wed Nov 03 09:40:16 2010
@@ -19,6 +19,9 @@

<?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
if ($home) {  // This is what gets printed on the home page only
+        $navlinks = array();
+        $navlinks[] = array('name' => get_string('home'), 'link' => '');
+        $navigation = build_navigation($navlinks);
?>
<?php print_container_start(true, '', 'header-home'); ?>
<h1 class="headermain"><?php echo $heading ?></h1>

Ciao,

Matteo

(Edited by Helen Foster to fix the undetermined error MDLSITE-1113 - original submission Wednesday, 3 November 2010, 09:49 AM)