Lunar social media icons open within website

Hi I would like the social media icons to open their respective platforms outside of the website (in their own window) when clicked. At the moment when clicked my website disappears when the social platform opens.

Do I need to add more code to have this happen or is there a setting somewhere I’m not looking.

One of the 4 sets codes (1 for each social media platform) I have reads like this:

Love to have some help with this.
Thanks in advance.
L

Depends on what stack you are using…look at this page…in the menu bar…is this what you are wanting to happen?
http://ibize.com/markz/

Hi Joe, thanks for getting back to me. Im using the Lunar theme that comes with social media icons for the banners. I was able to edit them for colours (under page styles) and which choose ones I am using (using code under the page sidebar). I checked out your site (cool!) and your social icons do open in a new window (I want that functionality) but I don’t intend to have them in the menu bar.
Any ideas?
Thanks
L

HI Joe, I got feedback from Elixir and the short story is cannot be done using the built in icons. I’ll figure something else out since I don’t want potential clients to fall down the Facebook rabbit hole and not get back to my site.
Thanks
L

they would be wrong…just edit the code:
<a class=“myBadge twitter” href=“http://twitter.com” target="_new")>

Wow. hmm and I asked them about code. I edited the code to my linked in and posted to test but it still doesn’t open in a new window. Did I edit my code correctly? Please check out my attempt.

FROM:

TO: <a class=“myBadge linkedin” href=“https://www.linkedin.com/in/lydiacharakpsychotherapy/“target=”_new”)>

Thanks for your help.
L

What I believe I said when asked was the following…

If you want to modify the link after upload that is fine, but is not related to the theme itself. You will need to do so though each time you publish your page.

If you want to modify the theme internally then you risk that change being overwritten when an update for the theme is pushed out to users. This is also up to you if that is something you’d like to do, but you will need to make the modification again after any updates to the theme.

Hope that clears things up.

Looks like you may have an errant paren after your target tag.

Here is a sample on mint…
http://ibize.com/code/

and it works

Thank you for this. I see what you are saying and I appreciate the follow up. Like a dog on a bone I went ahead and I tried the edited code without the paren and it still opens in the same window. So I think I’m back to the drawing board I think.
Thoughts?
Cheers
L

Are you editing the code in the theme or after publishing?

In the theme in the page sidebar. I have no idea how to do it after publishing.

Ah yes, I do apologize I forgot Lunar uses the cut and paste badges and not the pre-coded badges. My mistake. That’s what happens when you’re trying to go from memory while working on another project.

try this:
<a class=“myBadge twitter” href=“http://twitter.com” target=”_new”>
Ensure all the spacing and quotes.

Thanks Joe, I’m still not doing something right. I must be blind in one eye and can’t see out of the other LOL. Could I impose on you to fix my code so I can copy and paste? I would be so appreciative. I plopped my code in below just in case you say yes…
Thanks for your help.

<a class=“myBadge linkedin” href=“https://www.linkedin.com/in/lydiacharakpsychotherapy/” target=”_new”>

No worries, Thanks a bunch! You must do all kinds of multitasking plus fielding tech questions too.
Im still having a go at changing the code to do what I need.
cheers
L

Does this help:
10%20AM

The sample page is updated with that code.

Hi Joe, it’s tear hair out time. I swear I’ve done it exactly the same way with no luck. I tried a different browser just in case. I copied your code and carefully swapped out the relevant words.
I’m sorry, I just don’t get why its not working.
Thanks for all your help.
L

The target should be _blank and not _new. Give that a shot.

Hi @LCharak… I see Adam spotted the error :slight_smile:
Just in case it helps, here’s a sample I found while reading through this:

https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_target

It should make sense to you having tried everything here…