Astra Page Info Filter
-
I was able to add the description to the month and year of Archive page by copying the entire astra_archive_page_info function and adding the descriptions I wanted. Is it possible to add less code to have the same result?
Here is the code I added:
// Month.
} elseif ( is_month() ) {
?><section class="ast-archive-description">
<?php do_action( 'astra_before_archive_title' ); ?>
<?php the_archive_title( '<h1 class="page-title ast-archive-title">', '</h1>' ); ?>
<p>Description Text Test</p>
<?php do_action( 'astra_after_archive_title' ); ?><?php do_action( 'astra_after_archive_description' ); ?>
</section><?php
PS: I try use add_filter but it works only for the description of the filter, the rest disappear if I do not copy the entire function.
Thanks’s in advance!
- The topic ‘Astra Page Info Filter’ is closed to new replies.