layers_before_list_title

Since: 1.1.5 Last Updated:
Back to Main Index

Outputs your custom code before the post title in the blog and post list pages. This code is inside of the <header>  wrapper, but will not inherit H1 styling. See layers_before_list_post_title to output code before this wrapper.

Location: partials/content-list.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. 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