Is there a plugin like this one that works:
https://www.ads-software.com/plugins/insert-javascript-css/
I love this one worked, it put a way to put javascript or css on each post or page.
Very good way. So I can put different ones on each different page, without having to put all of them on just one plugin.
but it is outdated now, and I’m getting this error from it:
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/user/public_html/wp-includes/functions.php on line 4147
Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/user/public_html/wp-includes/functions.php on line 4147
Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/wp-includes/functions.php:4147) in /home/user/public_html/wp-admin/includes/misc.php on line 1114
when I deactivate this plugin those go away, when I reactivate it, they return, so it must be this plugin.
So if you know of one that is as good that is updated and works, please let me know which one it is. I looked at a bunch but did not find one as good.
]]>I see someone else had this problem, but no responses…
I had to turn off the plugins one at a time to find which one was putting this error and finally I found the culprit…
How do I fix this error?
This is in the plugin, so what can we do to fix it?
Thanks,
Rich
Dear Developer,
I have a problem with this plugin. Because I want to insert a javascript and css3, but the javascript and css3 not working cool.
I would like to avoid the iframe this content and I want to build the html code with css3 and javascript.
Why does not work this plugin correctly?
Thx,
Cavey85
Hi.
I want to insert a script not on a single page but on all pages. What changes do I need to make in the plugin code so that I do that.
PHP error found with this plugin installed and (from what I see) not tying wp_enqueue_script to an action.
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /usr/appl/wordpress/wp-includes/functions.php on line 2758
To fix, reference this https://codex.www.ads-software.com/Function_Reference/wp_register_script
Plus here’s an example in reference to wp_enqueue_script
add_action('wp_enqueue_script','register_my_scripts');
function register_my_scripts(){
wp_register_script('xxx');
}
I’ll work on it myself as time permits.
https://www.ads-software.com/extend/plugins/insert-javascript-css/
]]>I would like to remove the nav menu from just a single page (the “register” page) on my wordpress website.
I have installed the Insert JavaScript and CSS plugin to try and do this, using the following …
.home #main menu {display:none;}
… but to no avail. Does anyone have any suggestions? Any suggestions would be very welcome.
Pagee link: https://www.darroncarver.co.uk/shop/register
Thanks, Steph
https://www.ads-software.com/extend/plugins/insert-javascript-css/
]]>I installed this plugin, had the ability to add my JavaScript and CSS when I created a post. But the JavaScript/CSS I entered is not being embedded in the actual post.
https://www.ads-software.com/extend/plugins/insert-javascript-css/
]]>I’m wanting to add JavaScript generated by Obfuscate Mail, which uses the document.write() method. However, this plugin doesn’t seem to actually write anything to the post. Ideally, I would like to be able to type in content on the page and then specify where I want the JavaScript to write, but if necessary, I would be alright with just putting the entire content of the page into document.write().
https://www.ads-software.com/extend/plugins/insert-javascript-css/
]]>