Home › Forums › Support › Hooks inside widgets? › Reply To: Hooks inside widgets?
May 23, 2015 at 9:40 pm
#109933
Tom
Lead Developer
Lead Developer
Hi Pedro,
We do have a filter for the widget title, which may work for you.
For example:
add_filter( 'generate_start_widget_title', 'generate_custom_widget_title_ribbon' );
function generate_custom_widget_title_ribbon()
{
return '<h4 class="widget-title"><div class="ribbon-edge-bottomleft"></div>';
}
Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/
BTW, to add HTML in here, highlight your code and click the “code” button in the editor 🙂