fahimmurshed

Astra Related Post Title Tag

Jun 9th, 2021 (edited)
1,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. // user can use this astra_related_posts_title filter & update the structure, with shortcode
  2. add_filter( 'astra_related_posts_title', 'update_related_posts_title_markup', 10, 1 );
  3. function update_related_posts_title_markup( $markup ) {
  4.     $markup = '<div class="ast-related-posts-title-section">';
  5.         $markup = '<h2 class="ast-related-posts-title">'; // Remove H2 heading if not required.
  6.             $markup .= do_shortcode( '[My_shortcode]' );
  7.         $markup .= '</h2>'; // Remove H2 heading if not required.
  8.     $markup .= '</div>';
  9.     return $markup;
  10. }
Add Comment
Please, Sign In to add comment