Skip to content

Forum in maintenance, we will back soon 🙂

Making the Wordpres...
 
Notifications
Clear all

Making the WordPress AI Chatbot Sitewide?

8 Posts
5 Users
1 Reactions
205 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: 1139
Noble 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: 550
Member Moderator
 

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

 
Posted : 06/10/2024 1:49 pm
(@husein)
Posts: 550
Member Moderator
 

These ones:

 

 
Posted : 06/10/2024 1:50 pm
(@google-mbvsuraj)
Posts: 1
New Member
 

Hey, I'm struggling to add the chatbot on all the pages. Can anyone explain in detail?

 
Posted : 07/24/2024 6:47 am
(@husein)
Posts: 550
Member Moderator
 

@google-mbvsuraj add the files i showed above in all pages in the footer, then it would appear on all pages.

 
Posted : 07/24/2024 9:30 am
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@google-mbvsuraj, you can use a code snippet to inject it into all pages. 

 

 
Posted : 07/26/2024 7:09 am
Share:
[the_ad_group id="312"]