Custom Page Top in webjobs
Problem: A lot of websites like to have a different masthead on the home page than on secondary pages. Since webjobs offers only one template for the page header - templates/page_top.html — the solution is an if/then statement within the template. I heard that you can modify what template is chosen by webjobs in the base library files, but since these files are encrypted, the below method is the only method I can come up with on short notice.
Solution: Edit templates/page_top.html to display one bit of html for the index, and another bit for any other page. Here’s the basic idea:
<? if ($_GET['page'] == "" ){
?>
put your html for the index page top here
<!–End top and Logo for home page–>
<!–start top and Logo for secondary pages–>
<?
}
else{
?>
put your html for the other pages here
<?
}
?>
<!–End top and Logo for secondary pages–>