if (!function_exists('mysite_scripts')) {
/**
* Enqueue scripts and styles.
*/
function mysite_scripts() {
$the_theme = wp_get_theme();
if (!is_admin()) {
wp_enqueue_style('bootstrap.min', get_stylesheet_directory_uri() . '/css/bootstrap.min.css', array(), '4.0.0');
wp_enqueue_script('jquery');
wp_enqueue_script('popper.min', get_template_directory_uri() . '/js/popper.min.js', array(), '1.12.3', true);
wp_enqueue_script('bootstrap.min', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '4.0.0', true);
wp_enqueue_script('custom', get_template_directory_uri() . '/js/custom.js', array(), $the_theme->get('Version'), true);
}
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
}
add_action('wp_enqueue_scripts', 'mysite_scripts');
<?php wp_nav_menu( $args ); ?>
wp_nav_menu( array(
'theme_location' => '',
'menu' => '',
'container' => 'div',
'container_class' => '',
'container_id' => '',
'menu_class' => 'menu',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 0,
'walker' => '',
) );
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'items_wrap' => '<ul><li id="item-id">Список: </li>%3$s</ul>' ) ); ?>
<div class="row">
<div class="col-md-12 form-group text-white">* - поля, обязательные для заполнения</div>
</div>
<div class="row">
<div class="col-md-4 form-group"><label class="sr-only">Имя</label><span class="placeholder">Имя</span>[text* your-name class:form-control]</div>
<div class="col-md-4 form-group"><label class="sr-only">Телефон</label><span class="placeholder">Телефон*</span>[text* your-phone class:form-control]</div>
<div class="col-md-4 form-group"><label class="sr-only">Email</label><span class="placeholder">Email*</span>[email* your-email class:form-control]</div>
</div>
<div class="form-group"><label class="sr-only">Тема</label><span class="placeholder">Тема</span>[text your-subject class:form-control ]</div>
<div class="form-group"><label class="sr-only">Сообщение</label><span class="placeholder">Сообщение</span>[textarea your-message x5 class:form-control]</div>
<div class="row">
<div class="col-md-6 form-group">[quiz quiz-413 class:form-control "1+1=?|2" "2+2=?|4" "3+3=?|6" "4+4=?|8" "5+5=?|10"]</div>
<div class="col-md-6 form-group">[submit class:btn class:btn-primary "Отправить"]</div>
</div>
/*
* Enabling product gallery features (zoom, swipe, lightbox) in 3.0.0
*/
add_theme_support('wc-product-gallery-zoom');
add_theme_support('wc-product-gallery-lightbox');
add_theme_support('wc-product-gallery-slider');