I have a couple of external links that I’d like to add to my menu. Is there a way to do this?
matt
June 27, 2023, 8:10pm
2
Right now, the best way is to create those links as empty pinned pages (only with a title, to show up in the navigation), then use some custom javascript to turn them into external links, as shown here:
This is the script that I use on my site. You can try adding that for your ebook link. The first set of scripts is for viewing the site when you are not logged in. The second set is for viewing it when logged in to write.as, so you have to replace ‘YourAlias’ with the alias for your blog.
var a = document.querySelector('a[href="https://catholichalos.org/books"]');
if (a) {
a.setAttribute('href', 'https://catholichalos.org/.epub');
}
var b = document.querySelector('a[href="/YourAlias/books"]'…
Thanks Matt! I will give it a go!
It worked perfectly! Thank you so much @matt !!!