Skip to main content
Laurenseife
August 19, 2025
Solved

Custom Code Header

  • August 19, 2025
  • 2 replies
  • 57 views

I currently have a code for a custom code header (here was my original question that Community helped me think through) that currently opens all links in a NEW tab. 

 

I’m asking if you folks know how to make ONE of those links open in the same tab. I have zero experience in coding, so I apologize for the junior question. 

 

If it helps, this is the code I have now:

  <div class="custom-header-logo-text"></div>
  </aside>

  <!-- <article></article> -->

  <aside class="sidebar-right">
    <ul class="custom-header">
      <li><a href="URL" target=“_blank”>Nameofpage1</a></li>

      <li><a href="URL" target=“_blank”>Nameofpage2</a></li>

      <li><a href="URL" target=“_blank”>Nameofpage3</a></li>

      <li><a href="URL" target=“_blank”>Nameofpage4</a></li>
    </ul>
  </aside>
</div>

 

    Best answer by FMEEvangelist

    If you just remove the

    target="_blank"

    part, it should just open in the same tab.

    2 replies

    FMEEvangelist
    Helper ⭐️⭐️
    August 19, 2025

    If you just remove the

    target="_blank"

    part, it should just open in the same tab.

    Ask me about all things spatial!
    Laurenseife
    August 19, 2025

    YAY, It worked!!!! Thanks for sharing your knowledge!