Hide "sold by" etc in mobile versions

Theme and Plugin Support

Hide "sold by" etc in mobile versions Open

Viewing 2 reply threads
  • Author
    Posts
    • #79507
      Suzie Blue
      Participant

      Hi There,

      is it possible to hide the area that says “sold by”, “categories” etc. in the mobile versions?

      Thank you for your help.

    • #80184
      Suzie Blue
      Participant

      Hello,

      could i get any answer to that?

      Thank you very much.

    • #80204

      Hi @Suzie Blue,
      Use this code in your current active themes functions.php file for remove soldby button from responsive pages.

      /*************** Hide sold by text for responsive *************************/
      add_action('wp_enqueue_scripts', 'extra_css_for_new_data',9999);
      function extra_css_for_new_data(){
          $pstyle = '
          @media screen and (max-width: 800px) {
          .by-vendor-name-link {visibility:hidden;}   
        }';
          wp_add_inline_style('product_css', $pstyle);
      }
      copy
Viewing 2 reply threads

Please LOGIN to reply to this topic

WCMp bundle is available at a slashed price

Grab It Now