fauzanjeg

Remove Prefix Title on Archive Page

Dec 6th, 2021
855
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Remove Prefix Title on Archive Page */
  2. function remove_prefix_title_on_archive_page( $prefix ) {
  3.     if ( is_archive() ) {
  4.         $prefix = '';
  5.     }
  6.     return $prefix;
  7. }
  8. add_filter( 'get_the_archive_title_prefix', 'remove_prefix_title_on_archive_page' );
RAW Paste Data