# Active link to other webpage in Pinned Post on landing page?

**URL:** <https://discuss.write.as/t/active-link-to-other-webpage-in-pinned-post-on-landing-page/367>\
**Category:** Customization\
**Tags:** writeas\
**Created:** [February 7, 2019, 11:48pm UTC](https://discuss.write.as/t/active-link-to-other-webpage-in-pinned-post-on-landing-page/367 "2019-02-07T23:48:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cjeller1592](https://discuss.write.as/user_avatar/discuss.write.as/cjeller1592/32/128_2.png) [@cjeller1592](https://discuss.write.as/u/cjeller1592)\
**Post date:** [April 23, 2019, 12:04pm UTC](https://discuss.write.as/t/active-link-to-other-webpage-in-pinned-post-on-landing-page/367/4 "2019-04-23T12:04:43Z")

</div>

The other day I discovered a little trick to do just this - replace a pinned post with a link to another webpage.

All you need is the link to the pinned post and the link of what you want to replace the pinned post with. Then add this to your ‘Custom Javascript’:

```auto
var a = document.querySelector('a[href="https://blog.cjeller.site/search"]');

if (a) {
  a.setAttribute('href', 'https://search.cjeller.site');
}

```

And off you pop! Might be a bit of a hack until more customization becomes available, but I think it does the job.

---

_[View the full topic](https://discuss.write.as/t/active-link-to-other-webpage-in-pinned-post-on-landing-page/367)._
