Comments on: Image Element (Pro) https://ninjatables.com/docs/image-element/ Easiest Table Builder Plugin In WordPress! Mon, 01 Jan 2024 05:05:49 +0000 hourly 1 https://wordpress.org/?v=6.4.2 By: Mohiuddin Omran https://ninjatables.com/docs/image-element/#comment-115 Mon, 01 Jan 2024 05:05:49 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-115 In reply to Erick.

Hello Erick,
This error shouldn’t be there. We recommend you to create a support ticket from https://wpmanageninja.com/support-tickets/.

]]>
By: Erick https://ninjatables.com/docs/image-element/#comment-114 Fri, 29 Dec 2023 22:24:32 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-114 In reply to Mohiuddin Omran.

Hello! This action did not work. When I trying to add javascript:void(0) to the image link the message is shown: “Something went wrong, please try again.”.

The code:
jQuery(document).ready(function() {
jQuery(‘tbody a’).each(function() {
var hrefValue = jQuery(this).attr(‘href’);
if (hrefValue === ‘javascript:void(0)’ || hrefValue === ”) {
jQuery(this).removeAttr(‘target’);
}
});
});
also presented an error when being added to JS Custom field. Would you help us?

]]>
By: Nusrat Fariha https://ninjatables.com/docs/image-element/#comment-103 Mon, 13 Nov 2023 05:52:20 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-103 In reply to Ian Jenkins.

Hi Ian. If I understand your question correctly, “Transform Value” can help you out with what you’re looking for. https://ninjatables.com/docs/transform-value/

]]>
By: Ian Jenkins https://ninjatables.com/docs/image-element/#comment-90 Thu, 02 Nov 2023 20:06:39 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-90 I am using SQL to populate the tables, I want to provide the image URL as a column in the query. How do I get the table to display this image in the column?

]]>
By: Mohiuddin Omran https://ninjatables.com/docs/image-element/#comment-89 Thu, 02 Nov 2023 08:16:09 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-89 In reply to Mabel Weng.

Hello Mabel,

Thank you for getting in touch with us. To ensure that your images are not linked, follow one of these methods:

1. Leave the URL field empty when adding images to your table.
2. Alternatively, you can use javascript:void(0) in the URL field.

For method 2, follow these additional steps to prevent the images from opening as a link or in a new tab:

Click the Settings section in your table. Under the JS Custom field, paste the following JavaScript code:

jQuery(document).ready(function() {
jQuery(‘tbody a’).each(function() {
var hrefValue = jQuery(this).attr(‘href’);
if (hrefValue === ‘javascript:void(0)’ || hrefValue === ”) {
jQuery(this).removeAttr(‘target’);
}
});
});

This JavaScript code ensures that links within the

elements with a URL of “javascript:void(0)” or empty will not open in a new tab. Let me know if it helps.

Thank You. ]]> By: Mabel Weng https://ninjatables.com/docs/image-element/#comment-87 Wed, 01 Nov 2023 16:56:27 +0000 https://ninjatables.com/?post_type=docs&p=9848#comment-87 I don’t want the image to be linked to anything, how can I do that?

]]>