Glomon
December 9, 2023, 10:24pm
1
Hello, i downloaded whatsup plugin from WhatsApp Button - Oweb Studio .
In the installation instructions it writes:
Usage
You can use sample basic snippet of plugin:
<?php snippet('whatsapp-button') ?>
Where should i put this snippet for plugin to work?
Thx in advance
Put <?php snippet('whatsapp-button') ?>
code into /site/snippets/footer.php
and setup your phone number from config.php like that:
<?php
// /site/config/config.php
return [
'owebstudio.whatsapp-button' => [
'phone' => '4912345678',
]
];
Glomon
December 9, 2023, 10:36pm
3
Thx that was quick it works
Glomon
December 10, 2023, 6:25pm
4
apparently it doesnt work as specified, it breaks my theme.
What’s exactly the issue? Maybe I can help…
Glomon
December 11, 2023, 1:30pm
6
The problem is that my template which is clicktonext/firma template doesnt have footer.php file in site folder, and when i create such file the template breaks the design. So i dont know where should i put code <?php snippet('whatsapp-button') ?>
to work as intended.
Hmm, you can add the code into /site/plugins/clicktonext/extensions/kirby-theme-core/snippets/footer.php
.
Glomon
December 11, 2023, 5:04pm
8
Yes, that will do the trick, the theme has its own files & now everything is working. Thnx