code for add to home for IOS
-
Thank you for the best plugin! However, for iOS, an install prompt button should be added. I have a code snippet here that you can use:
<div class="daftplugPublicIosOverlay">
<div class="daftplugPublicIosOverlay_background"></div>
<div class="daftplugPublicIosOverlay_content">
<div class="daftplugPublicIosOverlay_header">
<div class="daftplugPublicIosOverlay_title"><?php printf(__('Add %s to Home Screen', $this->textDomain), $appName); ?></div>
<div class="daftplugPublicIosOverlay_close"><?php esc_html_e('Close', $this->textDomain); ?></div>
</div>
<div class="daftplugPublicIosOverlay_main">
<p class="daftplugPublicIosOverlay_message"><?php printf(__('For an optimized experience on mobile, add %s shortcut to your mobile device\'s home screen', $this->textDomain), $appName); ?></p>
<div class="daftplugPublicIosOverlayStep -one">
<img class="daftplugPublicIosOverlayStep_icon" src="<?php echo plugins_url('pwa/public/assets/img/icon-iosstep1.png', $this->pluginFile); ?>"/>
<div class="daftplugPublicIosOverlayStep_desc"><?php esc_html_e('1) Press the share button on your browser\'s menu bar', $this->textDomain); ?></div>
</div>
<div class="daftplugPublicIosOverlayStep -two">
<img class="daftplugPublicIosOverlayStep_icon" src="<?php echo plugins_url('pwa/public/assets/img/icon-iosstep2.png', $this->pluginFile); ?>"/>
<div class="daftplugPublicIosOverlayStep_desc"><?php esc_html_e('2) Press \'Add to Home Screen\'.', $this->textDomain); ?></div>
</div>
</div>
</div>
</div>i found this code in the premium plugin “daftplug-instantify” wich is no more supported.
thanks
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.