add_filter( 'add_to_cart_text', 'woo_custom_product_add_to_cart_text' ); // < 2.1
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_product_add_to_cart_text' ); // 2.1 +
function woo_custom_product_add_to_cart_text() {
return __( 'My Button Text', 'woocommerce' );
}
setInterval(function(){
$('a:contains("My Button Text")').css('border', '1px solid red');
},1000);
<?php
if (isset($_POST['name'])) {$name = $_POST['name'];}
if (isset($_POST['email'])) {$email = $_POST['email'];}
if (isset($_POST['phone'])) {$phone = $_POST['phone'];}
if (isset($_POST['mess'])) {$mess = $_POST['mess'];}
$to = "e@mail.ru";
$charset = "windows-1251";
$subject = "Тема";
$message = "Имя: $name \ne-mail: $email \nТелефон: $phone \nСообщение: $mess";
$from = "$email";
$headers = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=windows-1251" . "\r\n";
$headers .= "From: $from";
$send = mail ($to,$subject,$message,$headers);
if ($send == 'true')
{
echo "<center><p style='color:#339900; font-size:18px;'>Спасибо за отправку вашего сообщения!</p></center>";
echo "<center><font size='3'><a href=/>Перейти на главную</a></font></center>";
}
// else
// {
// echo "<b>Ошибка. Сообщение не отправлено!</b>";
// }
?>
html, body {
position: relative;
height: 100%;
}
body {
background: #fff;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color:#000;
margin: 0;
padding: 0;
}
.swiper-container2,
.swiper-container {
width: 40%;
height: 300px;
margin-left: auto;
margin-right: auto;
position: relative;
overflow: hidden;
z-index: 1;
}
.swiper-slide2,
.swiper-slide {
background-size: cover;
background-position: center;
}
.gallery-top2,
.gallery-top {
height: 40%;
width: 50%;
}
.gallery-thumbs2,
.gallery-thumbs {
height: 20%;
box-sizing: border-box;
padding: 10px 0;
}
.gallery-thumbs2 .swiper-slide,
.gallery-thumbs .swiper-slide {
height: 100%;
opacity: 0.4;
}
.gallery-thumbs2 .swiper-slide-active,
.gallery-thumbs .swiper-slide-active {
opacity: 1;
}
var galleryTop = new Swiper('.gallery-top', {
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
spaceBetween: 10,
loop:true,
loopedSlides: 5, //looped slides should be the same
});
var galleryThumbs = new Swiper('.gallery-thumbs', {
spaceBetween: 10,
slidesPerView: 4,
touchRatio: 0.2,
loop:true,
loopedSlides: 5, //looped slides should be the same
slideToClickedSlide: true
});
var galleryTop2 = new Swiper('.gallery-top2', {
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
spaceBetween: 10,
loop:true,
loopedSlides: 5, //looped slides should be the same
});
var galleryThumbs2 = new Swiper('.gallery-thumbs2', {
spaceBetween: 10,
slidesPerView: 4,
touchRatio: 0.2,
loop:true,
loopedSlides: 5, //looped slides should be the same
slideToClickedSlide: true
});
galleryTop.params.control = galleryThumbs;
galleryThumbs.params.control = galleryTop;
galleryTop2.params.control = galleryThumbs2;
galleryThumbs2.params.control = galleryTop2;
<body class="page-template page-template-page-map page-template-page-map-php page page-id-2">
$loop = new WP_Query( array(
'category_name' => 'имя_категории',
'post_type' => 'product',
'posts_per_page' => 40,
'orderby' => 'menu_order',
'order' => 'ASC',
));