Reply To: heading issues – causing accessibility issues

The support forum is open for members only. To add a topic or reply in the forum, please login or register.

Support Forum Moved
The Pojo Themes support has been transferred to a faster and more personal ticketing platform, so the forums are no longer active.
  • If you want to learn how to use Pojo themes, check out our extensive documentation guides.
  • Need help with using our themes? Contact us with a detailed explanation of your issue in the support page.
  • Have a pre-sale question or other inquiry? Feel free to contact us about it.

Support › Forums › Support (Legacy) › heading issues – causing accessibility issues › Reply To: heading issues – causing accessibility issues

#1831
Boaz
Keymaster

For now there isn’t an option to control the widget’s headlines.
But you can change it by adding a function to the function.php file.

1. Make sure you are working with a child theme.
2. add this lines of code to function.php file (you can change it to <h3> if you want):


function pojo24475_setup_builder_widget_args( $args ) {
    $args['before_title'] = '<h2 class="pb-widget-title"><span>';
    $args['after_title'] = '</span></h2>';
    
    return $args;
}
add_filter( 'pb_empty_widget_args', 'pojo24475_setup_builder_widget_args' );