Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73992

Add Javascript and SCSS files to wordpress plugin

$
0
0

I have created a plugin for a booking process but I'm not able to add the style or js files I have been using with it.

CSS file is found at "css/style.css" and JS file is found at "js/script.js".

My plugin php file which is working, is:

<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

function sc_booking_process() {

    return 'html code...';
}
add_shortcode('cinema-booking', 'sc_booking_process');
?>

It just isn't working with the style and js files.

Thanks.


Viewing all articles
Browse latest Browse all 73992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>