Skip to content
site logo mobile

Forum in maintenance, we will back soon 🙂

Making the Wordpres...
 
Notifications
Clear all

Making the WordPress AI Chatbot Sitewide?

5 Posts
3 Users
0 Reactions
23 Views
 F
(@frederik)
Posts: 2
New Member
Topic starter
 

Hi,

I watched the video of creating a free AI Chatbot in WordPress and it worked relatively easy.

However, I am trying to make it sitewide so it shows on all pages of the website and I find that impossible to do, unfortunately ChatGPT is of no help.

First I tried to make a child-theme, add the php, css and javascript there, while pasting the html in footer.php. So far this does nothing, hoping anybody have an easier and most importantly possible way to make this bot show on all pages.. 

Thank you

 
Posted : 06/08/2024 1:56 pm
SSAdvisor
(@ssadvisor)
Posts: 1050
Noble Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Power Member
 

@frederik have you tried putting the shortcode in the footer of the site? I'm assuming the footer is on each post.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 06/08/2024 2:05 pm
 F
(@frederik)
Posts: 2
New Member
Topic starter
 

@ssadvisor I have tried adding the following to my theme's footer.php file through Theme File Editor

<!-- Chatbot container added here -->
<div id="chatbot-container">
<div class="lwh-open-cbot">
<div class="chat__messages"></div>
<div class="loading" style="display: none;"></div>
<div class="chat__status"></div>
</div>
</div>

<?php wp_footer(); ?>

No success tho. What is the shortcode I should attempt? 🙂

 
Posted : 06/08/2024 2:20 pm
(@husein)
Posts: 328
Member Moderator
Premium Member
Prompt Engineer
Pythonista Prodigy Badge
API Entrepreneur
Power Member
 

@frederik Try adding the html, css, and javascript in this link on all the pages.

 
Posted : 06/10/2024 1:49 pm
(@husein)
Posts: 328
Member Moderator
Premium Member
Prompt Engineer
Pythonista Prodigy Badge
API Entrepreneur
Power Member
 

These ones:

Screenshot 2024 06 10 165017

 

 
Posted : 06/10/2024 1:50 pm
Share: