layers_after_title_excerpt
Back to Main Index
Outputs your custom code before the excerpt in the Title section (the large banner-style title) on page templates such as blank and Blog, and wherever this partial is called. This code is outside the main loop.
This hook resides inside the Excerpt condition, therefore code inserted using this hook will not appear if the post or page does not have an excerpt defined or if title excerpts are disabled another way.
Location: partials/header-page-title.php
Code output appears after:
1 |
<p class="excerpt"><?php echo $details[ 'excerpt' ]; ?></p> |
Code output appears before:
1 |
</div><!--closing div of .title --> |
Usage:
1 |
add_action('layers_after_title_excerpt', 'my_title_excerpt_function'); |