# Hiding multilanguage link

**URL:** <https://forum.getkirby.com/t/hiding-multilanguage-link/3978>\
**Category:** Questions\
**Tags:** v2\
**Created:** [April 27, 2016, 12:36pm UTC](https://forum.getkirby.com/t/hiding-multilanguage-link/3978 "2016-04-27T12:36:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stoffex](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stoffex](https://forum.getkirby.com/u/Stoffex)\
**Post date:** [April 27, 2016, 12:36pm UTC](https://forum.getkirby.com/t/hiding-multilanguage-link/3978/1 "2016-04-27T12:36:39Z")

</div>

Hej hej … is it somehow possible to hide the link when the different multilanguage page is active?

Like: A user is at the page with german content … here i want to hide the link to switch to german language and let show only the link to the english content.

`\<?php foreach($site-\>languages() as $lang): ?\>  
\<?php echo $lang-\>name() ?\>

\<?php endforeach ?\>`

i tryd now for hours to find an solution … now i just gave up … XD  
Would be nice if someone could help me here with an hint. 😉

Greetings

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 27, 2016, 1:02pm UTC](https://forum.getkirby.com/t/hiding-multilanguage-link/3978/2 "2016-04-27T13:02:31Z")

</div>

Yeah, with a little if statement:

```auto
<?php foreach($site->languages() as $lang): ?>
  <?php if ($site->language() != $lang): ?>
    <a href="<?php echo $page->url($lang->code()) ?>"><?php echo $lang->name() ?></a> 
  <?php endif ?>
<?php endforeach ?>

```

Or if that does not work, add the `code()` method to the two objects to compare.

---

<div class="post-metadata">

**Author:** ![Stoffex](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stoffex](https://forum.getkirby.com/u/Stoffex)\
**Post date:** [April 27, 2016, 1:23pm UTC](https://forum.getkirby.com/t/hiding-multilanguage-link/3978/3 "2016-04-27T13:23:14Z")

</div>

WoW … just works perfect.  
Thanks alot …

`$site->language() != $lang):`

Now i know how to … 😉

Greetings

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:59pm UTC](https://forum.getkirby.com/t/hiding-multilanguage-link/3978/4 "2025-02-06T16:59:44Z")

</div>


