[Resolved] Mobile view

Home Forums Support [Resolved] Mobile view

Home Forums Support Mobile view

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1298016
    JOAQUIM GALANTE

    Have a way to view the site on mobile phones or tablets always like in the computer, with the same view as we see in pc ?

    #1298343
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    So you want to completely turn off the mobile responsive option?

    I’m unable to get your site to load as well.

    Let me know ๐Ÿ™‚

    #1298389
    JOAQUIM GALANTE

    See always one mobile the same frontpage as the computer, is it possible ? null

    #1298606
    Tom
    Lead Developer
    Lead Developer

    You could do something like this:

    add_filter( 'generate_meta_viewport', function() {
        return '<meta name="viewport" content="width=1024">';
    } );
    #1298945
    JOAQUIM GALANTE

    Nothing happens, the view in mobile phone is not the computer view for default. Tom tell me, if it is not possible i close the topic. I ask that because the people i know like more to see the site in computer view instead mobile view. Thanks

    #1299542
    Tom
    Lead Developer
    Lead Developer

    Is the function live on the site? I’m not seeing it.

    It’s possible with that function, although I typically wouldn’t recommend doing it.

    #1299548
    JOAQUIM GALANTE

    I delete the filter because nothing hapend.

    Do you recomend don’t use the filter ?

    #1299819
    Tom
    Lead Developer
    Lead Developer

    Can you add the filter so I can inspect your HTML with it on the site?

    #1300088
    JOAQUIM GALANTE

    I already put the filter code on Simple CSS:

    add_filter( ‘generate_meta_viewport’, function() {
    return ‘<meta name=”viewport” content=”width=1024″>’;
    } );

    but when i saved them appears:

    add_filter( ‘generate_meta_viewport’, function() {
    return ”;
    } )

    ๐Ÿ™‚

    #1300192
    David
    Staff
    Customer Support

    That code is PHP.
    This document explains adding PHP to your site:

    https://docs.generatepress.com/article/adding-php/

    #1300214
    JOAQUIM GALANTE

    Thanks David but when i add the code to pluginception my site turn all blank, i need to enter in c-panel and delete the plugin to recover the site. ๐Ÿ™

    #1300323
    David
    Staff
    Customer Support

    Can you try the Code Snippets plugin and make sure you copy the code from here:

    https://generatepress.com/forums/topic/mobile-view-6/#post-1298606

    #1300424
    JOAQUIM GALANTE

    I canยดt install the code-snippets plugin because give a fatal error when i activate it and i must remove the plugin in security mode.

    #1300483
    JOAQUIM GALANTE

    Hi, finaly i could install code-snippets, the code works ๐Ÿ™‚
    Thanks a lot.

    #1300774
    David
    Staff
    Customer Support

    Glad to hear that !

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.