main
, т. к. искал в footer
, а при обновлении браузер оставляет тебя на том же месте, а не поднимает вверх страницы. header.header,
main.main,
footer.footer {
overflow: hidden;
width: 100vw;
}
.footer-about
flex-wrap: wrap;
и всё встанет на свои места. .mobile-ul-marketing {
height: 0px;
overflow: hidden;
}
.mobile__nav-li.active .mobile-ul-marketing {
height: auto;
}
function subMenu(){
const lia = document.querySelectorAll('.mobile__nav-li > a');
lia.forEach(function(a, b, c){
a.addEventListener('click', function(e){
e.preventDefault();
this.parentNode.classList.toggle('active');
return !1;
})
})
}
subMenu();
А мне нужно чтобы он переходил, просто с добавлением header
window.location = xhr.url;
function click_a (e) {
e.preventDefault();
var $this = this;
$.ajax({
url: $this.href,
dataType: 'html',
beforeSend: function(xhr) {
xhr.setRequestHeader("custom", "my_custom_here");
},
success: function (data, status, xhr) {
//console.log(data, status, xhr);
window.location = $this.href;
}
});
return !1;
};
$from
закомментирован.Вот он должен быть именно от доменного имени. Иначе будет сыпать в спам 90%.
Т. е. на хостинге должен быть организован почтовый домен от сайта, с которого будете слать и там нужно завести ящик, который указываете в
$from
. А вот уже$signature
это ни как не email адрес. Это обычное имя. Например "Письмо с сайта ИМЯ_САЙТА.RU"