wpb_widget_title

⌘K
  1. Home
  2. Docs
  3. Filters
  4. wpb_widget_title

wpb_widget_title

To output title for content elements WPBakery Page Builder is using h2 tag, if you need to modify it, here is how it can be done:

<?php
add_filter('wpb_widget_title', 'override_widget_title', 10, 2);
function override_widget_title($output = '', $params = array('')) {
  $extraclass = (isset($params['extraclass'])) ? " ".$params['extraclass'] : "";
  return '<h3 class="entry-title'.$extraclass.'">'.$params['title'].'</h3>';
}
?>

 

Was this article helpful to you? No Yes 1

How can we help?