Support » Plugin: Contextual Related Posts » One thing is missing! Hide for mobile version

  • Please add some feature that hide this related post on mobile version. Please!
    Because we are using amp version.
    Hide for width <840px or <480px

    • This topic was modified 2 years, 7 months ago by adilraya65.
Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    I’m actually looking to see how I can improve the mobile version formatting. You can also disable this using CSS if I’m not mistaken where you could use something like this in custom styles

    @media screen and (max-width: 600px) {
      .crp_related {
        visibility: hidden;
        display: none;
      }
    }
    

    Another option is to use something like this in your functions.php:

    
    wp_is_mobile() {
    
    remove_filter( 'the_content', 'crp_content_filter', 20 );
    
    }
    
    
Viewing 1 replies (of 1 total)
  • The topic ‘One thing is missing! Hide for mobile version’ is closed to new replies.