Sidebar Links / Navigation

I’m trying to use write.as as a replacement for a tumblr sketchblog that’s mostly a combination of pictures and tags. So far, that works great, and I’m pretty happy with how simple it is.

One thing I’d like to see is some way to add simple links to the page, specifically to external sites. Since my sketchblog is only part of my web ecosystem, it’d be nice to be able to direct people to my portfolio, my website, and other places.

Granted, there may be a way to do this that I don’t know of, and I’d gladly accept hacks for now, especially if future plans are to have such a feature in the final product.

1 Like

On the professional plan there is a way to pin posts to create static pages for your sketchblog (here). That page could have a list of all your external sites. Don’t know about having these pinned posts redirect. It is a great idea though!

2 Likes

Oh jeez, thanks for that, the gif is extremely informative, because that’s exactly what I’d want: pin a page like that, except to an external link.

Did you manage to have the links redirect to outside pages? I’d like to have social media accounts as “pinned” links, but as far as I can tell this is not currently supported?

Hi @albins,

This can be done through Custom Javascript. It replaces the pinned post with the link you want to redirect to. Here is an example:

var a = document.querySelector('a[href="https://write.as/cjeller/twitter"]');
if (a) {
  a.setAttribute('href', 'https://twitter.com/cjeller');
}

Hope that helps!

4 Likes

It does, thank you!

I also need this as well. But instead of using .js and HTML hacks there should be a more intuitive way to do it, preferably with an option to add external links to nav section.

1 Like

I gave this a shot, and my expectation was that the header link would go to another page. It didn’t work on my end. Just pasted into the JS customizer and updated the URLs accordingly. Am I missing a step?