Code to open external links in new tab in Baseline theme

Hi there, I have been trying different coding to open external links in a new tab on my clients website. None seem to work with the theme we are using called Baseline. The website is www.lalanijennings.com and the password is balance2023. Any help is much appreciated! Thank you.

If the theme does not give you the option, you should modify the liquid code, for that you have to go to the site, inspect it and look for the links that you want to open in a new tab, once you find it, look for those links in the code of your theme, then to each link you should add the target=“_blank” attribute, you should have something like that Client page

Thanks for the reply! How do I find the link in the liquid code? I have tried searching for the URL withint the theme.liquid file but can’t find it.

First, go to their website and simply look for any external links, such as social media links etc. Take a note of where these links are placed - header, footer or else. Finally, go to Themes → Edit Code and use the right file, such as footer.liquid and whatnot.

theme.liquid usually wont have any links apart from internal ones. Its usually the headers, footers and some pages like About Us.

Thanks for the reply! The link I am trying to fix is in the footer menu. I cannot find it in the footer.liquid file though! I’m racking my brain here. :rofl: Could it be because the link is in the footer menu?

Yes, indeed, the links from menu are not accessible within the file. If you are confident in your html / css, then you can add this link straight to the file instead of a menu, so visually it would still look like a part of the same menu.

I’m not sure how to do that exactly - is there any way I can make the menu link open externally instead?