• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

PHP Code To Modify The Widget Title of Any Widget

This PHP code enables you to modify the widget title of any widget native to WordPress or any Genesis widget. You can also change the value for the $id_base to match any widget which enables you to modify any widgets title.

Note : The code only works if you have manually added a title to the widgets Title field.

The filter is included in the WordPress core files located in wp_includes/default-widgets.php.

The filter also enables you to modify the default output of every setting in every widget.

Listed below is the code for every WordPress widget and Genesis widget.

You can simply add any of these code snippets to your child themes functions file to change any widget title in WordPress including any theme specific widgets like Genesis Featured posts widget etc.

Register for full access

Related Code Snippets

  • Conditionally Wrap Genesis Featured Posts Widget Title In Span Tags
  • Modify Genesis Featured Page Widget Title
  • Change Widget Title Tags From H4 To H2
  • Change Genesis Widget Title HTML Tag From H4

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags