Clickable Widget Titles
-
Hello,
How to add a function to accept the HTML code in Ocean extra’s widget title?
I want to assign a Link to widget titles.Now by the below code, this option is added to WordPress widgets.
add_filter( 'widget_title', 'accept_html_widget_title' ); function accept_html_widget_title( $mytitle ) { $mytitle = str_replace( '[link', '<a', $mytitle ); $mytitle = str_replace( '[/link]', '</a>', $mytitle ); $mytitle = str_replace( ']', '>', $mytitle ); return $mytitle; }
Thank you very much
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Clickable Widget Titles’ is closed to new replies.