Is there a specific stylesheet that should be used for posts, pages and home page or do I have to add the same CSS to multiple files?
Or is it better practice according to Ghost to add the needed CSS as inline when, for example, creating a HTML card? Or should I use a class and add it to one or more files?
This is the head tag of the default.hbs file. This file is loaded on every single page.
The {{ghost_head}} tag is where the code injection will take place, it’s also mentioned in the settings.
The tag is loaded as last and therefore it has the highest priority.
<head>
{{!-- Document Settings --}}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{!-- Base Meta --}}
<title>{{meta_title}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
</head>
Ok…
I inspected and got the class of the close icon for the subscribe. I then inserted that into the head for code injection (with and without the <style> tag and with and without the use of !important) without any change.