- This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › General Stuff › Simple Download Monitor – javascript error printed at the top of the website
Hi
Installed and set up simple download monitor.
I get ‘var sdm_frontend_translations = {incorrect_password: ‘Incorrect Password’}; ‘
visible at the top of every page.
When I look at the page source it is injected into the head as a hard printed string.
I have located this in ‘main.php’
public function sdm_frontend_scripts() {
// Pass language strings to frontend of WP for js usage
?>
<script type=”text/javascript”>
var sdm_frontend_translations = {incorrect_password: ‘<?php _e(‘Incorrect Password’, ‘sdm_lang’) ?>’};
</script>
<?php
}
… Why is this printing on my website?
“Simple Download Monitor” is not supported on this forum. Please use the WordPress.org support forum for this plugin:
[http://wordpress.org/support/plugin/simple-download-monitor]