=== AddonLogic Custom CSS/JS Injector ===
Contributors: snehalpancholi
Tags: custom css, custom javascript, css injector, js injector, code injection
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add custom CSS and JavaScript to your WordPress site's head or footer with flexible scope controls — no file editing required.

== Description ==

Custom CSS/JS Injector lets you add your own CSS styles and JavaScript code directly from the WordPress admin — no need to edit theme files or create a child theme.

**Features:**

* Custom CSS output in the `<head>` tag
* Custom JavaScript output in either the `<head>` or before `</body>`
* Scope control: all pages, front page only, single posts, single pages, or specific IDs
* Code editors with monospace font for readability
* Zero dependencies — pure WordPress, no external libraries
* Safe: only administrators can modify code; nonce-protected form

**Scope Options:**

* All pages — inject everywhere on the frontend
* Front page only — home page only
* Single posts only — individual post templates
* Single pages only — individual page templates
* Specific IDs — comma-separated list of post/page IDs

== Installation ==

1. Upload the `custom-css-js-injector` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to **Settings → CSS/JS Injector** to add your code

== Frequently Asked Questions ==

= Do I need to include `<style>` or `<script>` tags? =
No. The plugin wraps your code in the appropriate tags automatically.

= Will this work if I switch themes? =
Yes. The code is stored in the database independently of the active theme.

= Who can edit the CSS/JS? =
Only users with the `manage_options` capability (Administrators by default).

== Changelog ==

= 1.0.0 =
* Initial release
