I checked again and I have no element with class ‘dae-shortcode-register-message’ – which should display the message.
as in download.js line 81:
form.parent().find( ‘.dae-shortcode-register-message’ ).html( dataObj.message );
Hi,
Nice to hear you like our plugin, thank you.
Is the element with class “dae-shortcode-register-message” also not present before clicking the Send Link button? Do you use a page builder to place the shortcode on a page? Or are you using a plugin that could affect the HTML of the shortcode? You could disable one plugin at a time to see if this fixes your problem.
You could also check for JavaScript errors when you inspect the elements in your browser.
Kind regards,
Team Download After Email
Hello, thanks for your reply.
I updated my theme to latest version.
I checked the “source” and the element <p class=”dae-shortcode-register-message”></p> is there when the page is loaded, right after the </form> tag.
It is still there when I click the Send Link button. The wheel turns for a few seconds, but the dae-shortcode-register-message element is not populated.
Strangely, although it is in the loaded source, it is not present in the DOM, hence the
form.parent().find( ‘.dae-shortcode-register-message’ ).html( dataObj.message );
does not work.
I check the Network tab and I see that admin-ajax.php returns correct json.
{“type”:”success”,”message”:”
<span class=\”dae-shortcode-register-success\”>
An email has been sent with the download link.<\/span>”}
I use WPBakery Page Builder. The shortcode is inside a text box. Everything works fine except this message problem 🙁
I can send you a URL if you would like to check the problem.
Hi,
You’re welcome. Okay, since the element <p class=”dae-shortcode-register-message”></p> is present in the source code, the element is probably being removed by an external source. For example, with JavaScript it’s possible to remove an element from the DOM (this does not affect the source HTML). The easiest way to find out which source this is is to disable a plugin (or your theme) and see if it fixes the problem.
Kind regards,
Team Download After Email