HUSKY - Products Filter Professional for WooCommerce

Wie man das CSS der Website je nach Gerät manipuliert

Sometimes users need manipulate the site css depending of the client device <PC or Mobile>. You can do it with the next code example, which should be placed on the file footer.php Ihres aktuellen WordPress-Themes:

<?php 
if (WOOF_HELPER::is_mobile_device()): ?>
 <style type="text/css">
                .woof_show_auto_form {
                    display: inline-block !important;
                }
            </style>

            <?php else: ?>
            <style type="text/css">
                .woof_show_auto_form {
                    display: none !important;
                }
            </style> 
<?php endif; ?>

Im aktuellen Beispiel wird gezeigt, wie der woof Auto-Formular-Button auf dem PC ausgeblendet und auf mobilen Geräten angezeigt wird …