fueko home fueko home

Post title: 'italic' style

Style part of a single Genki post or page title in italics when the normal Ghost title field is not enough. The snippet replaces the rendered title in the browser and wraps only the selected words in Genki’s italic title style.

This JavaScript runs in the browser, so the title may briefly appear in its original style before switching to italic. This is called FOUT (Flash of Unstyled Text).
Step-by-Step
  1. Open the 'Post settings' panel from the icon in the top-right corner.
  2. At the bottom of the panel, open the 'Code injection' section.
  3. Then, paste this code to the 'Post footer':
<script>
var newTitle=document.getElementById('post-title');
    newTitle&&(newTitle.innerHTML="This is <span>italics</span>")
</script>

When editing the code, insert the full title between the quotation marks. Anything placed between the <span> ... </span> tags will appear in italics. For example:

"This is <span>italics</span>"
  1. Close the panel and click 'Update' to activate.