Created
July 18, 2018 06:21
-
-
Save rushijagani/9511e62d4b015ed6620ce182a4c024cc to your computer and use it in GitHub Desktop.
Add cotnent above the Archive page and Single post title before in Astra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add cotnent above the Archive page's each post's title before | |
*/ | |
add_action( 'astra_archive_post_title_before', 'astra_child_add_content_before_archive_post_title' ); | |
function astra_child_add_content_before_archive_post_title() { | |
echo "Add Your content before the archive pages post title"; | |
} | |
/** | |
* Add cotnent above the Single Post's title before | |
*/ | |
add_action( 'astra_single_post_title_before', 'astra_child_add_content_before_single_post_title' ); | |
function astra_child_add_content_before_archive_post_title() { | |
echo "Add Your content before the single post title"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment