Hi,
This may be a very simple thing to do but can't figure it out.
Q- How does one go about including css files on the page accessible through a route setup via WP-Router ?
Note: The page is being set up via a new plugin I am trying to make.
Note2: linking to a CDN is an option but figuring out what to do if I want my plugin to be self-contained
Do we -
A) Use the action 'wp_enqueue_scripts' or
B) Serve the file from another route(like '/assets/css/mycss') setup using WP-Router using 'file_get_contents' ?
C) Something else.
Let me know if this can be done with this plugin? Thanks !
Hi, This may be a very simple thing to do but can't figure it out.
Q- How does one go about including css files on the page accessible through a route setup via WP-Router ? Note: The page is being set up via a new plugin I am trying to make. Note2: linking to a CDN is an option but figuring out what to do if I want my plugin to be self-contained
Do we - A) Use the action 'wp_enqueue_scripts' or B) Serve the file from another route(like '/assets/css/mycss') setup using WP-Router using 'file_get_contents' ? C) Something else.
Let me know if this can be done with this plugin? Thanks !