• Resolved recuerdaclub

    (@recuerdaclub)


    hello!
    I am using the chatbot inserted throughout the web, but I would like it not to appear on some specific pages, or to appear only for logged in users.

    Is there any way to do that?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @recuerdaclub,

    Yes, you need to inject the chatbot by yourself (not by using the option that does it automatically).

    You could write this:

    add_action( 'wp_footer', function () {
      if ( is_user_logged_in() ) {
        $name = wp_get_current_user()->display_name;
        echo do_shortcode( "[mwai_chat start_sentence='Nice to see you again, $name!' window=true]" );
      }
    } );

    That will work ??

    Thread Starter recuerdaclub

    (@recuerdaclub)

    Thank you very much for the reply ??

    The problem I have with this solution is that the page I have is a membership/forum/social network, therefore, new pages are constantly being created and it is not feasible to manually add the code.

    I tried to disable the plugin on the specific page but it still shows, how else can I block it on some page?

    I think it would be a very good missing option, since I want the use of the chat to be only for club members

    Plugin Author Jordy Meow

    (@tigroumeow)

    Actually, this is the code you need! You didn’t try it, right? ??

    You don’t add the code on the specific page, it’s on your whole site, and you can decide to show the chatbot depending on your conditions, dynamically. If you don’t know how to add code to your website, have a look here: https://meowapps.com/add-custom-php-code-wordpress/.

    Thread Starter recuerdaclub

    (@recuerdaclub)

    seems to work!

    Thank you so much!

    I have 2 questions left.

    1- When using this configuration, does it keep the context of the personality that I wrote to the chatbot?

    2-I have a problem because on the mobile version platform, the chat icon overlaps the publish button, is there a way to make it appear higher in height?

    thank you so much

    Plugin Author Jordy Meow

    (@tigroumeow)

    1- When using this configuration, does it keep the context of the personality that I wrote to the chatbot?

    This configuration is an override, so you can override the default context, or it will use the default context.

    I have a problem because on the mobile version platform, the chat icon overlaps the publish button, is there a way to make it appear higher in height?

    Do you have a screenshot you can share?

    Thread Starter recuerdaclub

    (@recuerdaclub)

    thanks for the short answer

    1- How would I have to add the context in the snippet?

    2-I attach an image, by which I mean that the position interferes with the mobile interface of the platform, for example in the image it does not allow them to send messages.

    I marked in red where I would like to place the chat so that it does not interfere so much.

    Thank you ??

    Plugin Author Jordy Meow

    (@tigroumeow)

    Have a look in the Settings of the plugin, it’s all there ?? (The Chatbot Shortcode Builder)

    For position and size, you need to handle your own CSS. I made it work on standard themes, but it can’t work on all the themes, you need to customize the CSS a bit. Worth looking into this ??

    Thread Starter recuerdaclub

    (@recuerdaclub)

    Thanks for the reply:

    1- i look for the option, but the only option that appears in setting its a box called: ShortCodes – resolve

    maybe you have a link for how tio add the command to the code you send me?

    2 i tried this CSS code, it work in the inspector of the navigator but when i insert in the theme doesn’t work.

    #mwai-chat-640b70be284ff.mwai-window?{
    position: fixed;
    right: 30px;
    bottom: 70px;
    width: 460px;
    z-index: 9999;
    }

    ?It need something more?
    Im not a hardcore CSS or php maker ??

    A Z

    (@ahmedzeidan)

    The PHP snipept works well to render the widget shortcode by a WPcode plugin and then exclude the code from a specific page. Thanks @tigroumeow

    Can anyone help me setting my website with AI chat bot.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘hide the chat bot on specific pages when it is embedded in the whole web’ is closed to new replies.