Wordpress integration
Let's cover two easy ways to add the code snippet to your Wordpress website.
Option 1: Theme Editor
Option 2: Integration using a plugin


Last updated
Let's cover two easy ways to add the code snippet to your Wordpress website.


Last updated
function expertpal_button_widget() {
?>
<!-- paste your expertpal code snippet after this line -->
<script type="text/javascript">
window.$apwCfg = {
widgetId: 'cefa9fd5-aaf6-4e55-b540-9c5bae4a0fe4',
position: 'left',
colors: 'blue',
buttonText: 'Need help with this product?',
buttonShowAlways: true
};
var s = document.createElement('script');
s.type = 'module';
s.src = 'https://cdn.expertpal.io/ppwidget/index.0a32879e.js';
document.getElementsByTagName('head')[0].appendChild(s);
</script>
<!-- end of expertpal code snippet -->
<?php
}
add_action('wp_footer', 'expertpal_button_widget');