Site logo

Archived topic

See layout of the site on phone like on PC

5 replies · Started by JOAQUIM GALANTE on January 15, 2021

Viewing posts 1–6 of 6

Hi,

I have two php codes to do that but none of them work.

add_filter( 'generate_meta_viewport', function() {
return '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=0" />';
} );

and

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

Can tou have solution for it or it is impossible ?

Thanks a lot

https://focusmsn.pt/

Hi there,

those codes should work - but i am not sure how setting that layout would work on a Mobile device, you have responsive sliders and the Post Grid hero which would cause problems being viewed on such a small screen.

David, but when i choose in mobile, the option, view as on PC the view is good.

https://focusmsn.pt/15101-2 just you can see in the link

Doing that is going to bring down the wrath of the Search Engines on you. When they crawl the site it won't pass Mobile friendly tests as you will get 'text too small to read' and 'clickable elements too close together errors'.

Ok David, thanks a lot

You're welcome

This archived topic is closed to new replies.