hi. what code must i add to open all links in blog grid in new window by default. http://imgur.com/XpEsFLW
Hey wiwaldi79!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('article.slide-entry a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
Regards,
Yigit
Thanks yigit, but the website do not open at all when i add the code ;(
Ok thanks, but i do not see the effect. http://www.alfaweb.at/testwaldi/ try the blog at end of page ;(
cache cleared!
And do you have any idea how i can fix this error. https://kriesi.at/support/topic/error-at-contact-form/#post-482279 i try to get this done for weeks ;( Thank yous sooooo much ;)
Hi!
Please replace the code with this:
function add_custom_script(){
?>
<script>
jQuery('.slide-entry a').each(function() {
jQuery(this).attr('target', '_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Ismael
Thank you yigit. But i do not have this code. Whitch code should i delete in my functions.php?
`
Thanks Yigit. but the error is still there.
The contact form do not work correct ;( here the numbers don`t disapear –> http://i.imgur.com/Lr5PXCn.jpg and i always see the title of the contact form but NOT the sucessfull sent message ;( –> http://i.imgur.com/ufy96v4.jpg
Hey!
Please start a new thread and elaborate on the other issue you are having. This thread’s goal is to “open all links in blog grid in new window by default” and that should be working.
Best regards,
Yigit
Oh sorry, this was about the grid. my mistake. Closed! Thanks sooooooo much!
AMAZING!!!!!!
CLOSED!
And i opend a new thread like requested :)
https://kriesi.at/support/topic/contact-form-73/