Skip to content

Instantly share code, notes, and snippets.

@rushijagani
Created July 18, 2018 06:21
Show Gist options
  • Save rushijagani/9511e62d4b015ed6620ce182a4c024cc to your computer and use it in GitHub Desktop.
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
<?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