Hello ^__^ I’m working in Enfold. I have the Twitter widget and the advertising widget added to the footer.
I would like the link to Twitter and the three link on the left (the three images marked as “friends” and “partners”, always inserted in the footer, such as advertising area in the second and third column), to be opened in a new window: What or where I need to change it to open in a new window? Now, both Twitter and the other three, open the link on the same page, I would rather be opened in a new page, Many thanks for everything. Bruno
Hi,
Try adding this at the end of js/avia.js:
jQuery(function() {
jQuery(function(){jQuery('a[href][rel*=external]').each(function(i){this.target = "_blank";});
});
Regards,
Josue
Sorry Josue, I did update the theme and there is no more avia.js JS: What do you suggest?
It’s right here:
http://trikego.com/wp-content/themes/enfold/js/avia.js?ver=1
Regards,
Josue
I’m sorry, maybe there was a cache problem in FTP connection. I did like indicavi, but continues to open in the same window: you want me to send the file avia.js?
There are no JS expert, I did as you suggested
jQuery(function() {
jQuery(function(){jQuery(‘a[href][rel*=external]’).each(function(i){this.target = “_blank”;});
});
but it gave me error. I tried with
jQuery(function(){jQuery(‘a[href][rel*=external]’).each(function(i){this.target = “_blank”;});
});
but does not change, the link opens in the same window. Can you solve the problem? Many thanks Josua
Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
Josue
Sorry, try with this code instead:
jQuery(function() { jQuery(function(){jQuery('#footer a').each(function(i){this.target = "_blank";}); }); });
Cheers!
Josue
You are welcome, glad we could help :)
Regards,
Josue