I wonder how to hide shortcode in wordpress when javascript is disabled. The shortcode appear like strings so is ti a way to hide them with some codes?
here an exemple in php when i call a shordtcode:
<?php echo do_shortcode('[SHORTCODE HERE]'); ?>
Regards,
for this issue you can use <noscript>
tag. So fe:
<noscript>
<p>JS is switched off in a browser</p>
</noscript>
<script type="text/javascript">
...put here js code, which will be executed if js will be enabled...
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.