Hey there Oliver,
Hope you’re well! 🙂
Can you refer specifically the link you are saying? tried adding a tag in my editor and set target attribute to “_blank” but it works fine for me.
Looking forward for your reply! 🙂
Take care,
Calvin
Hi Calvin,
thank You for your replay.
Try this: http://www.peerhochdrei.de/materialien/
The link to the “broschure” on the bottom leftside is marked with _blank …
Many Greetings,
Oliver
Hey oliverwick,
It seems your link is missing the target="_blank" part, from what I can see in the source of your page.
Can you use this as example:
<a target="_blank" href="http://yourlink.com">Link</a>
Just change the link and the text accordingly.
Thanks,
Ivan
Hi Ivan,
sorry, target=”_blank” is part of the Link – but it doesn’t work!
Oliver
Hey there Oliver,
Hope you’re well! 🙂
If you wouldn’t mine making all a tag to be _blank. Follow the steps.
Use child themes for any customisation you will make. Read more about it here: http://codex.ww.wp.xz.cn/Child_Themes
Put this code inside your functions.php or use Code Snippet plugin
/**
* add a javascript to make all <a> tag a target=_blank
*/
function add_target_blank_to_link() {
?>
<script>
jQuery('a').attr('target', '_blank');
</script>
<?php
}
add_action( 'wp_footer', 'add_target_blank_to_link' );
Also I noticed there is no _blank on the link you are referring as you can see here: http://prntscr.com/60wwyu
Let me know if it helps! 🙂
Take care,
Calvin
Hi Gavin,
thank you very much for your support. It’s curious, but it still doesn’t work. The code snippet inside function.php has no effect.
And there is a target=”_blank” in the link, as you can see here:
http://prntscr.com/60z4vj
Any other idea?
many Greetings Oliver
Hi Oliver,
The only thing that can I think of is if you have some plugin striping this tag.
It might be a JavaScript code in some of the plugins or a security plugin.
Can you run a test by disabling all the plugins and se if it works after that?
Also it is a good idea to add 2-3 links on other places to see if they work.
Thanks,
Ivan