Code Injection

Code Injection

Editing CSS/JS via Ghost Admin Panel

If you need to edit some basic CSS we recommend to add your changes into Settings → Code Injection → Site Header:

And in the case of Javascript, use the Site Footer instead (so you will not affect the website speed).

Code Injection Panel

If you want to minify your code, we recommend you to use CSS Minify: https://cssminifier.com/

Adding Javascript

The steps are pretty similar to CSS, you just need to copy your code into Settings → Code Injection → Site Footer.

If you are familiarized with Javascript (you are a developer) and you need to add extra jQuery functions, we recommend you to download Prepros and load the prepos.config file into Prepros APP, this will help you to compile js/functions.js and minify all your code automatically.