Skip to main content

 

Hello,

can we use the default footer options With a custom code we would write for the footer? 

 

We would like to include a few more things with terms & conditions and cookie settings on our custom footer with branding etc. Can we use the OOB phrases and settings in that case?

If yes, how do we reference them? Also do you  have examples to share?

Hey @naveen1209, nice meeting you! 

Yes, that is possible to do by adding a script to your Third-party Scripts section on Control. One example I can share is community.freshworks.com - you can see in their footer they’ve added this extra word there (Privacy Notice).


You can do the same by adding this script:

// Inject privacy policy link into footer
$('.templatefoot-privacy-links').append('<a href="https://community.insided.com" target="_blank">Privacy Notice</a>');
</script>

Does this help? Let me know 😀


Hi there, I’m trying to do this, and may need a little extra guidance spelled out since I tried doing it and was unsuccessful. 

  • I C+P this code above and swapped out the URL to replace it with where my orgs Privacy policy is hosted
  • I loaded this code in control>customization>third-party scripts> head. 
  • That didn't work so I also tried control> customization> footer>custom code

Thanks in advance. 


Hi @Laurenseife - I just had a quick look in your sandbox and this seems to be working now.  Can you confirm that you’ve managed to fix it in the meantime?  :)


Hi and thanks @Kenneth R., confirming it is working now! Credit goes to @olimarrio who stepped in and help me realize I was missing <script> at the top of the code! For future readers, this is what I needed (slightly different than the above). 

You can add it from the control side. Control> Customization> Third-party Scripts> Insert in “Before </Body>

<script>
// Adding Privacy link to footer
$('.templatefoot-privacy-links').append('<a href="Website URL Goes Here" target="_blank">Privacy Notice Link Text Goes Here</a>');
</script>

 


Ah nice @Laurenseife - when I saw the snippet above earlier today I had noticed the missing ‘script’ tag and had a hunch that this might be what happened.  🙂 Great to hear it’s all sorted now. 


In a way I’m GLAD it happened, because I learned :) 


Reply