Go to Storefront > Script Manager, click Create a Script, choose:
- Location on page =
Footer
- Select pages where script will be added =
All Pages
-
- Script category =
Essential
- Script category =
- Script type =
Script
Enter the script below to Scripts contents:
<script type="text/javascript">
(function() {
var menuLinks = document.getElementById('menu').getElementsByTagName('a');
for (var a of menuLinks) {
var text = a.textContent;
if (('BLOG' == text) || 'LOCAL HENS' == text) {
a.setAttribute('target', '_blank')}
}
})();
</script>