Come manipolare il CSS del sito a seconda del dispositivo
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 del tuo tema WordPress corrente:
<?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; ?>
Nell'esempio corrente viene mostrato come nascondere il pulsante del modulo automatico di woof sui PC e mostrarlo sui dispositivi mobili…