Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #349237

    Greetings,

    I am using Enfold on my website: http://farumkyokushin.dk/

    I have added the Special: Email Icon to the extra header, but it opens the link in the same window/tab. Is there any way to have it open as target=”_blank”?

    Thanks.

    #349540

    Hey mp3dk!

    Try adding this to the bottom of your functions.php file.

    add_filter( 'wp_footer', 'enfold_customization_email_target_blank' );
    function enfold_customization_prevent_enter_submit() {
    	?>
    	<script type = "text/javascript">
    	jQuery(document).ready(function() {
    	  jQuery('.av-social-link-mail a').attr('target', '_blank');
    	});
    	</script>
    	<?php
    }

    Regards,
    Elliott

    #371531

    Sorry for the late reply. I can report that the code snippet doesn’t work.

    #371559

    Hi!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it? Elliott’s code should work fine

    Cheers!
    Yigit

    #1479988

    Hello, in the Enfold section, under social profiles, when I add my social network link, then from the website, it continues browsing in the same tab. I’d like to do this in a new tab. How can I set it to a new tab?

    Thank you very much.

    #1480000

    Hi,

    @lologc
    your site requires a login to view.
    For the solution above, please note that it is for the “av-social-link-mail” (email) link, so you need to change it for each of your social icons.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.