• Resolved elliotmch

    (@elliotmch)


    Hi there, I am wondering if there is a way to hide your widget on mobile only? it get’s in the way for users with small devices.

    Many thanks,

    Elliot

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support tomwolf

    (@tomwolfhun)

    Hello @elliotmch ,

    Put the shortcode ( or widget’s script ) into a block which is limited to wide-display views.
    I think your template, theme editor allow it and give an opportunitz for that. If not, let me know and I will write you a CSS code here, what will solve the problem.

    Happy new year,
    Tom
    Trustindex

    Thread Starter elliotmch

    (@elliotmch)

    Hi Tom, thanks for getting back.
    I can’t seem to limit that shortcode to wide only display.

    Please would you be able to help with some CSS for my customizer section?

    Kind regards,

    Elliot

    Thread Starter elliotmch

    (@elliotmch)

    Hi there, is there any update on the above?

    Thanks,
    Elliot

    Plugin Support tomwolf

    (@tomwolfhun)

    Hello @elliotmch ,

    We were on holidays at the end of the year. Thanks four your understanding.

    As I have checked, you site is working with Elementor. So you can use this to the widget’s section:
    https://elementor.com/help/show-or-hide-columns-per-device/

    Feel free to write to us if you need further assistance,
    Tom
    Trustindex

    Thread Starter elliotmch

    (@elliotmch)

    Hi,

    This is not possible because I am using a shortcode to ensure it shows on all pages (my site has a lot of pages):

    function my_shortcode_to_a_post( $content ) {
      global $post;
      if( ! $post instanceof WP_Post ) return $content;
    
      switch( $post->post_type ) {
        case 'post':
          return $content . '[trustindex no-registration=google]';
        case 'page':
          return $content . '[trustindex no-registration=google]';
        default:
          return $content;
      }
    }
    
    add_filter( 'the_content', 'my_shortcode_to_a_post' );
    ?>

    The review popup is therefore not and Elementor widget so you can’t hide it on mobile.

    Please could you assist?

    Thanks

    Hello @elliotmch

    I would recommend you to use javascript code to hide the widget.

    Feel free to write to us if you need any assistance,
    Dénes
    Trustindex

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide Review Popup on mobile’ is closed to new replies.