layers_after_single_title

Since: 1.1.5 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 and not the H1, so will not inherit its styling. See layers_before_single_post or layers_after_single_post to output code outside of the  <header>  wrapper.

Location: partials/content-single.php

Code output appears after:

Code output appears before:

Usage:

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.  Custom classes can be added to the third argument after meta-info