Question
I have a very simple JS script called script_1.js sitting at the root level of my twentytwelve-child theme. This script contains only: $(document).ready(function(){console.log("scriptLoaded"); }); and I've loaded it with the functions.php: function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', ...
0
, 2 months 0 Answers 36 views

Question
At present, I am disabling Right Click through the use of the following code: <?php // Disable Right Click function disable_right_click() { ?> <script> jQuery(document).ready(function(){ jQuery(document).bind("contextmenu",function(e){ return false; }); }); </script> <?php } add_action('wp_head', 'disable_right_click'); add_action('admin_head', 'disable_right_click'); ?> The only problem ...
0
, , , 2 months 0 Answers 34 views