Altru Ideas

Favicon added to webforms?

From a marketing/ branding standpoint, it would be AWESOME if we were able to add a custom favicon to our webforms! It would match the organization website even more while strengthening the brand. Plus it's just a nice detail to utilize. Just an idea...
  • Guest
  • Jan 4 2016
  • Reviewed
  • Attach files
  • Randall Rupert commented
    March 28, 2017 16:54

    No need.

    Modify your favicon after the page loads by including this javascript at the bottom of your page design's footer.

    Of course, replace my favicon with yours. Javascript also attached in txt file if the code below does not display properly.

    <script type="text/javascript">
    (function() {
    var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
    link.type = 'image/x-icon';
    link.rel = 'shortcut icon';
    link.href = 'https://boktowergardens.org/wp-content/uploads/2014/03/favicon.ico';
    document.getElementsByTagName('head')[0].appendChild(link);
    }());
    </script>
  • +7