How can I get my chat widget to work on the Primo VE landing page?

Answer

You can add the code for your chat widget to the homepage_en.html file in your customization package. However, if you have any JavaScript associated with this code, you need to put it in the custom.js file because that's the only place where Primo VE can use it. You need to stick it at the end of the file, separate from any other code on the page.


Libraryh3lp:

Here's an example of basic Libraryh3lp chat code that could be added to the end of the custom.js file, separate from any other code:

// libraryhelp code
(function() {
    var x = document.createElement("script"); x.type = "text/javascript"; x.async = true;
    x.src = (document.location.protocol === "https:" ? "https://" : "https://") + "us.libraryh3lp.com/js/libraryh3lp.js?1871"
    var y = document.getElementsByTagName("script")[0]; y.parentNode.insertBefore(x, y);
  })();

LibraryH3lp has their own FAQ on adding a chat widget for Primo and they are willing to help you create pop-out chat windows and do other things with your code. 


Springshare and Ask Us 24/7:

See Springshare's FAQs on LibChat: View embed code and direct links for chat widgets and Create LibChat widgets. Remember that you'll need to add the script in your custom.js file. See this set of instructions from Los Rios Libraries for their floating chat button.

Ask Us 24/7 is a Springshare product and installing the chat works similarly. The main difference is, you need to create the chat widget within your 24/7 LibAnswers. 

 

Topics

  • Last Updated Dec 08, 2023
  • Views 3488
  • Answered By Michelle Eichelberger

FAQ Actions

Was this helpful? 6 0

Comments (4)

  1. Thank you for making your FAQs public. Very helpful!
    by m schwendener on Nov 26, 2019
  2. "LibraryH3lp ... are willing to help you" Indeed. Their support is fantastic. And they have understood the special structure of Primo VE with js, css and html in separate files.
    by m schwendener on Jun 18, 2020
  3. You can see our libraryh3lp chat here https://basel.swisscovery.org/discovery/search?vid=41SLSP_UBS:live&lang=en. I'm particularly pleased that clicking on "Live Chat" in the text opens the widget :-) You could tell their support that you want your widget to look like this and they'll send you the code for the custom.js file.
    by m schwendener on Feb 10, 2021
  4. New version of the Libraryh3lp chat widget out https://libraryh3lp.blogspot.com/2021/08/2nd-generation-chat-box-coming-to.html
    by m schwendener on Sep 21, 2021