layers_before_single_post

Since: 1.0.7 Last Updated:
Back to Main Index

Outputs your custom code before the single post or page content title, inside the <article>  wrapper. This code is inside the loop.

Location: partials/content-single.php

Code output appears after:

Code output appears before:

Usage:

The below example demonstrates how you might insert a custom graphic above the post or page title in this hook location using a div and a custom class “post-header” that would set the background-image from your child theme or plugin stylesheet.