WP-Router icon indicating copy to clipboard operation
WP-Router copied to clipboard

How to use custom css files with pages shown through the new routes ?

Open maxcode360 opened this issue 9 years ago • 0 comments

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 !

maxcode360 avatar Jan 17 '17 03:01 maxcode360