Skip to main content
Solved

Custom Code Header

  • August 19, 2025
  • 2 replies
  • 28 views

Laurenseife

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 ⭐️⭐️
  • Answer
  • August 19, 2025

If you just remove the

target="_blank"

part, it should just open in the same tab.


Laurenseife
  • Author
  • August 19, 2025

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