Hello, thanks for your help! I am still stuck… I tried:
add_filter( 'mwai_chatbot_params', 'override_chatbot_params', 10, 1 );
function ai_engine_override_chat_atts( $atts ) {
$atts['icon'] = "https://MYWEBSITE.com/wp-content/uploads/2023/01/mychatboticon.png";
return $atts;
}
I does not work (no icon displayed). AND it deactivates all the style settings set in the Style module of the Chatbot Builder. So I suppose I should also add a code related to style as the above code seems to override (=suppress) all pre-existing styles. That means I need to play with the other code you provided in the tutorial page (see below) and try to mix it with the above code.
add_filter( 'mwai_chatbot_style', 'my_chatbot_style', 10, 2 );
function my_chatbot_style( $style, $chatbotId ) {
return $style . "
<style>
#mwai-chat-$chatbotId {
background: #343541;
color: white;
font-size: 15px;
//need to add also: border radius, secondary color, header button color, font color, spacing, and pop-up...
//how to mix this code with the above code? putting it below the above code, before, or nevermind where?
}
</style>
";
}
It seems a bit complicated for me to make it work. So I will wait for the “upload icon” feature in the UI ?? Hope it will come soon!
-
This reply was modified 2 years, 1 month ago by
Anonymous User 18315536.