Paul Carter-Quayle
Forum Replies Created
-
Here is the fix (kindly provided by the author of the ‘External Links – nofollow, noopener & new window‘ plugin) for anyone experiencing the same issue…
jQuery(document).ready(function() {
// Attach an event listener to all 'a' elements inside any '.ha-advanced-tooltip-content' div
jQuery(document).on('click', 'a', function(event) {
// Check if the clicked link is a child of a div with class 'ha-advanced-tooltip-content'
if (jQuery(this).closest('.ha-advanced-tooltip-content').length > 0) {
// Prevent the default action of the link
event.preventDefault();
// Add target="_blank" to the link to open in a new tab
jQuery(this).attr('target', '_blank');
// Open the link in a new window
window.open(jQuery(this).attr('href'), '_blank');
}
});
});Phew… I am relieved to arrive at a solution after many hours of troubleshooting. I hope the above code helps others too.
Wow! That worked, thanks soooo much for all your efforts with this! It is such a relief to arrive at a solution afetr all this troubleshooting, thank you.
I have also tried the following JS script snippet to see if this would work:
jQuery(document).ready(function($) {
jQuery('.ha-advanced-tooltip-content a[href]').attr('target', '_blank');
});However it still doesn’t work. Is this code correct or is there anything else you can recommend to force links in tooltips to open in a new tab?
I’ve also explored troubleshooting by disabling all plugins (except core plugins) and renabling one by one to see if there were any plugin conflicts, however it doesn’t appear there are any conflicts so I really hope you can offer suggestions to help resolve this.
Thank you kindly in advance ??
Thank you soooo much for your prompt reply. I have tried both the code snippets you provided and neither affect the tooltips unfortunately. Does it work on your end when visiting https://nglcommunity.org/what-we-offer/#Learning-Opportunities and hovering over the images?
I’ve tried troubleshooting by disabling plugins to see if there were any conflicts (caching/optimisation etc) however it doesn’t seem there are any so I’m just hoping I can find a code snippet to force the tooltip links to open in a new tab. I really had hoped the second code snippet you provided would work.
Do you have any further code (or other) suggestions you can offer?
Thank you kindly again for your support so far ??
Thank you kindly for your clarification and prompt response!
I am expereincing the same issue. I receive the following message:
“The latest version of Popup Maker requires changes to the Popup Maker settings saved on your site. The button below will process these changes automatically for you.”
With a submit button. When clicked nothing happens and the message remains.
- This reply was modified 2 years, 1 month ago by Paul Carter-Quayle.
Forum: Plugins
In reply to: [Community by PeepSo - Download from PeepSo.com] Feature EnquiryThanks, that’s really useful info! Really appreciate your help
Forum: Plugins
In reply to: [Community by PeepSo - Download from PeepSo.com] Feature EnquiryThank you for getting back to me so quickly. By custom coded, do you mean to develop a new plugin with this functionality? Is the PeepSo plugin an extension of BuddyPress? Just trying to work out the way forward, whether to find a developer to extend BuddyPress for these features.
Thanks again!