The best way to do this would be to use CSS3 media quires: @media (max-device-width: 480px)
but requires more work.
The quick and dirty way to make your WordPress theme app-like would be to add the viewport meta tag to the <head>
of your page:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
Viewport scales you page to fit the users device.
To hide the address bar in iOS and Android Just add this line of JavaScript to your page:
// When ready... window.addEventListener("load",function() { // Set a timeout... setTimeout(function(){ // Hide the address bar! window.scrollTo(0, 1); }, 0); });
You can also add this meta tag witch tells iOS your site is a web app and to hide the address bar:
<meta name="apple-mobile-web-app-capable" content="yes" />
Related Posts:
- Explanation of this hacked code
- Hide submenu wordpress?
- If hacker looked into all php file, can he make a harm to me?
- Header formatting works for safari but not chrome @media screen size technique on iphone
- Custom row action on custom posts list page causes a wp_die?
- iPhone system font
- Thread 1: EXC_BAD_ACCESS (code=1, address=0xf00000c)
- Detect a finger swipe through JavaScript on the iPhone and Android
- Detect a finger swipe through JavaScript on the iPhone and Android
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- Could not load NIB in bundle
- Proper usage of wp_is_mobile()?
- Add class to before_widget from within a custom widget
- WP 4.4. responsive images browser choosing the “wrong” one
- WordPress Gutenberg Embed Blocks Are Not Responsive
- How to get attachment id of background image?
- How to generate/update a XML sitemap without plugins?
- Brute force attack?
- Why is wp_get_attachment_image_src returning wrong dimensions? [duplicate]
- Posts in multiple Categories different single.php
- WP 4.4 aspect ratio with responsive image
- Don’t load scripts if on mobile/tablet
- Run shortcode at certain resolution
- Get a list of all image sizes that match aspect ratio of original one
- Attach to wp-login.php and xmlrpc.php
- WordPress login urls
- How do I make featured images retreived by the_post_thumbnail() responsive?
- Why was my blog post inserted lot’s of ad links by others?
- GIF featured image is resized on server but not used in frontend. Why?
- Is it dangerous to install unupdated plugins?
- Multiple wp_options tables to share content across installs
- Removing height and width from images with a caption
- Delete all one-word comments
- WordPress Ajax Posting from App
- How to install “WordPress for ios” on Apple’s SDK’s iPhone/iPad simulator?
- Why does my caroussel gallery do this in responsive? [CSS] [closed]
- Best practice for query_posts in responsive design?
- Twenty fifteen theme – change responsive menu condition
- Using SRCSET with Images and Featured Images
- Display Authors in a grid loop
- Old Site displays on Mobile View, not New Site
- Responsive menu gone on wordpress Responsive theme
- Implementing the twentythirteen responsive menu in twentytwelve
- Elements floating on top of each other when Resizing or checking site on mobile. Twenty Twelve
- No responsive design is displayed
- Some one is trying to hack my website, Need guidance [closed]
- Move Sidebar from Above Content To Below When Responsive [closed]
- Protect Passwords in wp_users with stronger protection than MD5
- WordPress Admin Login Custom Logo
- Change Responsive Images Maximum Width of 1600px
- Custom responsive ‘featured image’ sizes
- YouTube video goes over sidebar [closed]
- How to load different homepage on Mobile.?
- Serve a different theme based on window size
- How to stop WordPress from completely overriding my tags in my templates?
- How can I reference external attachments without breaking core WordPress files?
- Change Menu Button Text [closed]
- the_content not showing responsive image attributes srcset or sizes
- Custom Post Types and Removing Slugs – should we do it?
- Different column width in 2 rows with bootstrap and custom post types-different classes needed
- Define width of featured image thumbnails, but also make responsive?
- Change Image Sizes for Mobile Theme
- Change twentytwelve sidebar responsive relocation?
- Twenty Eleven Theme Adjusts for iPhones. How to stop this feature?
- First click to blog title does not open the blog article
- My theme header is stuck on a low resolution image?
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- Responsive header image
- Cannot collapse a responsive menu in WordPress
- tinymce and responsive line-breaks (short words after a period)
- Disable Responsive Image Sizes crop
- Shortcode function not showing up on mobile browser
- How to make in wordpress a gallery with 3 colums to 1 on mobile devices responsive?
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- Disable rendering of objects on mobile/above certain screen resolution
- New Styles Not Rendering On Mobile Phone and Tablet
- Broken images on iphone
- Menu is in Reversed order
- Decide how Hero image appears on mobile
- Responsive images with srcset
- built-in responsive images in content – do I need to add anything to functions.php?
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- Should I detect the device or the page first?
- How to insert category name above post title in a featured pages plugin?
- Hacked site using transient API?
- Responsive Wordress Site – Serve different post types to each device
- Ads below footer
- Create various image sizes ad hoc
- Responsive framework – edit child js
- site is loading fully zoomed in on mobile devices
- Problems Replacing Background Color with Static Background Image in Responsive Design
- Image menu on responsive WordPress
- Is Twenty Eleven Theme Responsive ? any update? [closed]
- How would I use a media query to make my entire theme responsive or fluid? [closed]
- different startsite for IOS and change menu
- How to make this splash page responsive
- Hamburger Navigation Menu
- Custom page template not working on mobile
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Site header logo and parallax image on homepage do not display on iPhone