Advertisement
fahimmurshed

Astra Archive Page Title

Dec 17th, 2020 (edited)
1,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. // Add custom title
  2. add_action('astra_template_parts_content_top', 'custom_blog_header',10);
  3. function custom_blog_header(){
  4.     if( is_home() ){
  5.         echo '<h1 class="entry-title astra-blog-header" > Blog </h1>';
  6.     }
  7.     return ;
  8. }
  9.  
  10. // Change Heading Tag
  11.  
  12. add_action('astra_template_parts_content_top', 'custom_blog_header',10);
  13. function custom_blog_header(){
  14.     if( is_home() ){
  15.         echo '<h2 class="entry-title astra-blog-header" > ' . get_the_archive_title() . ' </h2>';
  16.     }
  17.     return ;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement