Using the Front Page Header on the Course Home Page

Using the Front Page Header on the Course Home Page

by Tim Williams -
Number of replies: 1
Picture of Plugin developers
Does anybody know if it's possible to detect in the theme header page whether or not you're on a course home page or not ? I want to use the full size main home page header on the course home page instead of the regular one, but I can't find a way to do this.

eg the current code is

<?php if ($home) { // This is what gets printed on the home page only
?><?php } else if ($heading) { // If no navigation, but a heading, then print a line
?><?php } ?>

I want something like

<?php if ($home || $coursehome) { // This is what gets printed on the home and course home page only
?><?php } else if ($heading) { // If no navigation, but a heading, then print a line
?><?php } ?>
Average of ratings: -
In reply to Tim Williams

Re: Using the Front Page Header on the Course Home Page

by B Beals -
Edit the header.html to have everything below: if ($home) { // This is what gets printed on the home page only, the exact same as the section with: else if ($heading) { // This is what gets printed on any other page with a heading. That way no matter what area you are in you will have the same header display and function.