tr {
border-bottom:1px solid white;
}
tr td:first-child {
border-right:1px solid white;
}
tr:last-child {
border-bottom:none;
}
<?php $user_agent = "Нужный юзер агент"; ?>
<?php if(strpos($_SERVER['HTTP_USER_AGENT'], $user_agent)):?>
<meta http-equiv="refresh" content="1;URL=http:/site.ru">
<?php exit(); endif;?>
<a href="?add-to-cart=ваш_id" data-quantity="количество_единиц" class="product_type_simple add_to_cart_button ajax_add_to_cart" data-product_id="ваш_id" data-product_sku="" aria-label="Добавить в корзину" rel="nofollow" tabindex="0">
<span>Добавить в корзину</span>
</a>
<script src="/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=4.9.2" id="wc-add-to-cart-js"></script>
<!-- Он должен быть по стандарту там, но мало ли -->
<div class="add-to-cart ">
<a href="<?php echo $product->add_to_cart_url(); ?>" class="cart">
<span class="add-to-cart-content">Добавить в корзину</span>
</a>
</div>
$url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // получаем полный адрес
if(strpos($url, '?wpf=filter') === false){ // проверка нет ли в адресе атрибута
// Если найден
header('Location:'.$url .'?wpf=filter');
exit;
}else{
// Если не найдено
}
<div class=“boxes”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
<div class=“box”>
</div>
.boxes{display:flex;flex-wrap:wrap;}
.box{width:25%;}/* таким образом выводим по 4 в линии */
<ul>
<?php
$catalog_orderby = apply_filters( 'woocommerce_catalog_orderby', array(
'menu_order' => __( 'Default sorting', 'woocommerce' ),
'price' => __( 'Sort by price: low to high', 'woocommerce' ),
'price-desc' => __( 'Sort by price: high to low', 'woocommerce' )
) );
if ( get_option( 'woocommerce_enable_review_rating' ) == 'no' )
unset( $catalog_orderby['rating'] );
foreach ( $catalog_orderby as $id => $name )
echo '<li><a href="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . '?orderby=' . $id . '" >' . esc_attr( $name ) . '</a></li>';
?>
</ul>
<!-- Новый блок -->
<nav id="top" class="navbar navbar-default navbar-full">
<div class="container">
<div>
<div class="navbar-header">
<div id="logo">
<a href="https://procraft.com.ua/"><img src="https://procraft.com.ua/image/catalog/main/logo_procraft.jpg" title="Procraft" alt="Procraft" /></a>
</div>
</div>
<ul class="nav navbar-nav">
<li class="dropdown" id="contacts">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-mobile"></i> <span class="phone">098 187 4958 | 050 399 2808 | 093 170 5641</span> <span class="hidden-sm"> </span><i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
<li class="dropdown-header keep-open">Телефоны</li>
<li class="keep-open"><a target="_blank" href="tel:+380981874958"><i class="fa fa-lg fa-fw fa-phone"></i> 098 187 4958</a></li>
<li class="keep-open"><a target="_blank" href="tel:+380503992808"><i class="fa fa-lg fa-fw fa-phone"></i> 050 399 2808</a></li>
<li class="keep-open"><a target="_blank" href="tel:+380931705641"><i class="fa fa-lg fa-fw fa-phone"></i> 093 170 5641</a></li>
</ul>
</li>
</ul>
</div>
<div class="collapse navbar-collapse navbar-top-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a target="_blank" href="all-feedback-procraft/"><i class="fa fa-fw fa-comment-o"></i> Отзывы</a></li>
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa--"></i> Информация <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu dropdown-menu-left">
<li><a href="garantija-i-servis-procraft/">Гарантия и сервис</a></li>
<li><a href="oplata-i-dostavka-procraft/">Оплата и доставка</a></li>
</ul>
</li>
<li><a target="_blank" href="contacts-procraft/"><i class="fa fa-fw fa--"></i> Контакты</a></li>
<li><a target="_blank" href="statyi-procraft"><i class="fa fa-fw fa--"></i> Статьи</a></li>
<li class="dropdown" id="cart">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" data-loading-text="Загрузка..." role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-fw fa-shopping-cart"></i><small class="fa-stack"><i class="fa fa-circle fa-stack-2x"></i><span class="fa-stack-1x">0</span></small> <span class="hidden-sm"><span id="cart-total">0 грн</span> <i class="fa fa-angle-down"></i></span></a>
<ul class="dropdown-menu keep-open">
<li>
<p class="text-center">В корзине пусто!</p>
</li>
</ul>
</li>
<li class="dropdown" id="top-links">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-fw fa-bars"></i> <span class="hidden-lg hidden-md hidden-sm">Меню <i class="fa fa-angle-down"></i></span></a>
<ul class="dropdown-menu keep-open">
<li>
<form action="https://procraft.com.ua/index.php?route=common/language/language" method="post" enctype="multipart/form-data" id="form-language">
<ul class="dropdown-menu">
<li class="dropdown-header">Язык</li>
<li class="hidden">
<input type="hidden" name="code" value="" />
<input type="hidden" name="redirect" value="https://procraft.com.ua/" />
</li>
<li class="active"><a href="javascript:void(0);" class="language-select" onclick="$('input[name=\'code\']').val('ru-ru'); $('#form-language').submit();">Русский</a></li>
<li ><a href="javascript:void(0);" class="language-select" onclick="$('input[name=\'code\']').val('uk-ua'); $('#form-language').submit();">Українська</a></li>
</ul>
</form>
</li>
<li role="separator" class="divider clearfix"></li>
<li class="dropdown-header">Личный кабинет</li>
<li><a href="https://procraft.com.ua/login/" rel="nofollow"><i class="fa fa-fw fa-sign-in"></i> Авторизация / Регистрация</a></li>
</ul>
</li>
<li class="dropdown visible-xs">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="collapse" data-target=".navbar-menu-collapse"><i class="fa fa-fw fa-th-large"></i> Каталог товаров <i class="fa fa-angle-down"></i></a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Новый блок -->
nav#top .container{display:flex;flex-direction:row;}
@media screen and (max-width:1200px){
nav#top .container{display:flex;flex-direction:column;}
nav#top .container div{margin:0 auto;}
}