There are many great code snippets in their Gitlab. You might find more on their…
Total Theme: use Font definitions for all Elements
add_filter( 'wpex_typography_settings', function( $settings ) {
if ( isset( $settings['entry_h1'] ) ) {
$settings['entry_h1']['target'] = 'h1, .wpex-h1, .vcex-module h1, h1.vcex-heading';
}
if ( isset( $settings['entry_h2'] ) ) {
$settings['entry_h2']['target'] = 'h2, .wpex-h2, .vcex-module h2, h2.vcex-heading';
}
if ( isset( $settings['entry_h3'] ) ) {
$settings['entry_h3']['target'] = 'h3, .wpex-h3, .vcex-module h3, h3.vcex-heading';
}
if ( isset( $settings['entry_h4'] ) ) {
$settings['entry_h4']['target'] = 'h4, .wpex-h4, .vcex-module h4, h4.vcex-heading';
}
return $settings;
} );
Dieser Beitrag hat 0 Kommentare