How add JS to WP page with Gutenberg?
-
Hello,
Gutenberg rise and becomes very powerful!
But how is it possible to add some JS to some WP site page by Gutenberg? It needs to:
1) at <head> add some CSS: <style type=”text/css”>…</style>;
2) at <body> add JS start functions: <div id=”some-js”></div> <script src=”some.js”></script>.
Suppose that I need to make a different standalone Template? But when I open Gutenberg with Template editing and look at it HTML – I don’t see any kind of HTML there! So I need to start with HTML from scratch or from <body>, but then how I can add CSS?
Explain with sample, please!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How add JS to WP page with Gutenberg?’ is closed to new replies.