# Problem with anchor / regular links

**URL:** <https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574>\
**Category:** Elements\
**Created:** [November 19, 2025, 4:04pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574 "2025-11-19T16:04:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mikev/32/34985_2.png) [@MikeV](https://forums.realmacsoftware.com/u/MikeV)\
**Post date:** [November 19, 2025, 4:04pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/1 "2025-11-19T16:04:11Z")

</div>

Hi all,

I have a problem with adding some links into my sidebar navigation. When I add an regular link to google as example or using an anchor link, my SVG / text always moves to the left.. Can someone help me with this? Here is my file.

[elementsapp://downloadDocument/B9SnK6EghSIK](elementsapp://downloadDocument/B9SnK6EghSIK)

(i am working on mobile first atm so adjustments need to be done)

Thanks!

Greetings,

Mike

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [November 20, 2025, 8:41am UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/2 "2025-11-20T08:41:36Z")

</div>

I’ve taken a look at your project and it seems you have `javascript:void(0)` applied as a link to all the outer flex items. Not sure why this is, perhaps you are using a project you purchased from a third-party?

Anyway, if you wrap a link within a link site layouts will break as it’s not correct markup.

Remove the` javascript:void(0)` link from around the flex and your text links will work!

Let me know how you get on 🙂

---

<div class="post-metadata">

**Author:** ![WeaverPixel](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/weaverpixel/32/25453_2.png) [@WeaverPixel](https://forums.realmacsoftware.com/u/WeaverPixel)\
**Post date:** [November 20, 2025, 1:27pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/3 "2025-11-20T13:27:49Z")

</div>

Hi @MikeV

as this is one of the fleXon sidebars an additional answer from me. You should use the Flexbox as a link and not the text (therefore the dummy link with javascript:void(0) in the Flexbox). There is an icon and a text in the Flexbox and on small screens only the icon stays visible (because of the small space). If you set your link only to the text, you will loose your link on small screens.

---

<div class="post-metadata">

**Author:** ![MikeV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mikev/32/34985_2.png) [@MikeV](https://forums.realmacsoftware.com/u/MikeV)\
**Post date:** [November 20, 2025, 1:35pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/4 "2025-11-20T13:35:41Z")

</div>

Thank you @dan and @WeaverPixel for explaining this to me, i feel really dumb atm. 😂

You guys rock!

Thanks alot!

Greetings,

Mike

---

<div class="post-metadata">

**Author:** ![WeaverPixel](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/weaverpixel/32/25453_2.png) [@WeaverPixel](https://forums.realmacsoftware.com/u/WeaverPixel)\
**Post date:** [November 20, 2025, 1:40pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/5 "2025-11-20T13:40:15Z")

</div>

You know, there are no dumb questions 😉

By the way I like your website design from what is ready so far. Especially the logo is absolutely my taste - minimalistic and clear. Well done 👍

---

<div class="post-metadata">

**Author:** ![MikeV](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/mikev/32/34985_2.png) [@MikeV](https://forums.realmacsoftware.com/u/MikeV)\
**Post date:** [November 20, 2025, 2:01pm UTC](https://forums.realmacsoftware.com/t/problem-with-anchor-regular-links/52574/6 "2025-11-20T14:01:49Z")

</div>

Thank you! 😄
