Skip to content

Instantly share code, notes, and snippets.

@nextgenthemes
Created March 28, 2023 02:56
Show Gist options
  • Save nextgenthemes/417d90e641293b19ebc7d2ceca0b1b00 to your computer and use it in GitHub Desktop.
Save nextgenthemes/417d90e641293b19ebc7d2ceca0b1b00 to your computer and use it in GitHub Desktop.
Replace header tags in ARVE
<?php
add_filter( 'nextgenthemes/arve/title_html', 'arve_custom_title_tag' );
function arve_custom_title_tag( $html ) {
$html = strtr(
$html,
[
'<h5' => '<h2',
'</h5>' => '</h2>',
],
);
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment