Footer only on homepage of service portal

snowtech1
Tera Expert

Hello,

Looking for the best way for the footer to be available only on homepage, without looking for 'id' parameter. Currently using ng-if="data.pageParameter=='index' || !data.pageParameter" on the footer itself.

Any ideas would be useful. Thanks in advance.

1 ACCEPTED SOLUTION

Nate Aiken
Tera Expert

Another solution would be to put in one of your theme style sheets, a "display:none;" on a footer class.   Then on the page record in the Page Specific CSS set "display:block !important" and that should accomplish what you are trying to do.



Theme Style Sheet:


.footer {


      display:none;


}



Page specific style sheet:


.footer {


  display: block !important;


}



Hopefully this helps you out!



Regards,


Nate Aiken


View solution in original post

2 REPLIES 2

Nate Aiken
Tera Expert

Another solution would be to put in one of your theme style sheets, a "display:none;" on a footer class.   Then on the page record in the Page Specific CSS set "display:block !important" and that should accomplish what you are trying to do.



Theme Style Sheet:


.footer {


      display:none;


}



Page specific style sheet:


.footer {


  display: block !important;


}



Hopefully this helps you out!



Regards,


Nate Aiken


Nice one. A nice, clean solution. 

For anyone else who comes across, this I found the class to use in my instance was 'site_footer' i.e. 

 

In your portal theme add:


.site-footer {

display:none;

}

 

In your home\index page add:

 

.site-footer {

display: block !important;

}

 

 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul