It worked on localhost, and when transferring to hosting, I started to generate an error:
Parse error: syntax error, unexpected '}' in /home/taradajk/bti-zp.com.ua/www/wp-content/themes/bti/phones.php on line 46
I cite this piece of code:
function widget($args, $instance) { extract( $args ); $phone1 = $instance['phone1']; $phone2 = $instance['phone2']; $phone3 = $instance['phone3']; $office = $instance['office']; $email = $instance['email']; echo $before_widget; ?> <h3><i class="fa fa-phone" aria-hidden="true"></i> Звоните</h3> <ul class="phones"> <?php if($phone1): ?><li><?php echo $phone1; ?></li><? endif ?> <?php if($phone2): ?><li><?php echo $phone2; ?></li><? endif ?> <?php if($phone3): ?><li><?php echo $phone3; ?></li><? endif ?> </ul> <a data-remodal-target="callme" class="recallme"><i class="fa fa-question-circle" aria-hidden="true"></i> Задать вопрос</a> <?php if($email): ?><h3><i class="fa fa-envelope-o" aria-hidden="true"></i> Пишите</h3> <p><?php echo $email; ?></p><? endif ?> <?php if($office): ?><h3><i class="fa fa-home" aria-hidden="true"></i> Приходите</h3> <p><?php echo $office; ?></p><? endif ?> <div class="remodal" data-remodal-id="callme"> <button data-remodal-action="close" class="remodal-close"></button> <h1>Хотите задать вопрос?</h1> <p>Укажите свое имя и мобильный телефон, а мы перезвоним!</p> <?php echo do_shortcode('[contact-form-7 id="60" title="Задать вопрос"]'); ?> </div> <?php echo $after_widget; } That is, as you can see, there are no syntax errors. Maybe it's in the PHP settings? What parameters are responsible for the syntax check?

<?php echo $after_widget;and then immediately}...... and inside suddenlyecho $before_widget; ?>echo $before_widget; ?>and this is called no error? And on lokalkhost everything worked apparently because you turned off any error mapping .......... and in general this function is for javascript or for php? - Alexey Shimansky?>Put after<?php echo $after_widget;(closing interpreter tag) - Vasily Barbashev