Since: 1.0.7 Last Updated:
Back to Main Index

Outputs your custom code before the post title in the single post and pages that do not use the big header title. This code is inside of the <header>  wrapper, so will not inherit its styling. See layers_before_single_post to output code before this wrapper.

Location: partials/content-single.php

Code output appears after:

Code output appears before:


This hook can be useful if you want to insert custom code, such as meta, links or static text, above the post title but outside of the title’s wrapper. This example uses layers_post_meta to show the category link in this location. It assumes the default post meta output after the content is being filtered or hidden with CSS to avoid duplication. Custom classes can be added to the third argument after meta-info