How to set the footer only in the home page ?

KS12
Tera Contributor

Hi All,

 

I have a requirement to hide the footer in all the pages except the Home page. 

Hide form the Catalog form page, incident page.

 

The footer height is big as attached, i couldn't see the submit option in the catalog and incident submission page. Any one can guide me to hide the footer or how to adjust the catalog form page to see the submit option.

 

 

 

 

 

1 REPLY 1

Samaksh Wani
Giga Sage
Giga Sage

Hello @KS12 

 

Go to Service Portal > Header|Footer > Your footer page.

 

Go to HTML code snippet and give ng-if="data.foot" in top most div tag

 

Write a server script for the same :-

 

var page_id = $sp.getParameter('id');
if(page_id=='ID of homepage'){
data.foot = true;
}
else{
data.foot=false;
}

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh