Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Add the below code to the fucntions.php file of the oceanwp child theme.

    function no_meta_viewport() {
      return false;
    }
    add_filter( ‘ocean_meta_viewport’, ‘no_meta_viewport’ );

    Hello, I tried this using code snippets plugin and it didn’t work, am I suppose to do it differently?

    Hi,

    Please share your website URL to check.
    Replace the previous code with this one.

    function no_meta_viewport() {
        return false;
      }
      add_filter( 'ocean_meta_viewport', 'no_meta_viewport' );

    Code looks the same but I changed the comma, use this one.

    Thanks, it worked now!

    Glad to hear that the issue has been fixed!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to force desktop view on mobile phone with ocean-wp?’ is closed to new replies.