Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

Reply To: Hooks inside widgets?

Home Forums Support Hooks inside widgets? Reply To: Hooks inside widgets?

Home Forums Support Hooks inside widgets? Reply To: Hooks inside widgets?

#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 🙂