Андрей Николаев, ну тег, как оказалось, не решение
Решением стало написание скрипта:
if (window.location.pathname == '/' ||
window.location.pathname == '/index.html' ||
window.location.pathname == '/index.php'
) {
document.addEventListener("DOMContentLoaded", function() {
list_a = document.querySelectorAll('a');
if (list_a) Array.from(list_a).forEach(elem => elem.setAttribute('target', '_blank'));
});
}
Ну, то есть, все ссылки с главной в новой вкладке. Положила в custom.js в папку шаблона и все.
Может, кому-то пригодится.
Решением стало написание скрипта:
if (window.location.pathname == '/' ||
window.location.pathname == '/index.html' ||
window.location.pathname == '/index.php'
) {
document.addEventListener("DOMContentLoaded", function() {
list_a = document.querySelectorAll('a');
if (list_a) Array.from(list_a).forEach(elem => elem.setAttribute('target', '_blank'));
});
}
Ну, то есть, все ссылки с главной в новой вкладке. Положила в custom.js в папку шаблона и все.
Может, кому-то пригодится.