Is it possible to make a pinned post linkable instead of a static page?

That worked beautifully. I made some adjustments to it for my needs:

var a = document.querySelector('a[href="MY_MENU_ITEM_URL"]');
if (a) {
  a.setAttribute('href', 'MY_NEW_URL');
  a.setAttribute('target', '_blank');    /*ADDED THIS FOR NEW TAB*/
}

cc: @cjeller1592

Thanks all!

2 Likes