-
In regards to this thread: https://support.rankmath.com/ticket/breadcrumb-functionality-seems-limited/
I have this:
add_filter( 'rank_math/frontend/breadcrumb/settings', 'blm_modify_breadcrumb_settings', 10, 1); add_filter( 'rank_math/frontend/breadcrumb/strings', 'blm_modify_breadcrumb_strings', 10, 1);
This one works now after the recent bugfix:
function blm_modify_breadcrumb_settings( $settings ) { $settings = array( 'home' => true, 'separator' => '<i class="icon-fa-angle-right"></i>', 'remove_title' => '', 'hide_tax_name' => '', 'show_ancestors' => '', ); return $settings; }
However this one works if you add plain text, but it doesn’t allow html and defaults back to the setting in admin:
function blm_modify_breadcrumb_strings( $strings ) { $strings = array( 'prefix' => '', 'home' => '<i class="icon-fa-home"></i><span class="desktop">Home</span>', 'error404' => '', 'archive_format' => '', 'search_format' => '', ); return $strings; }
Please advise.
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The ticket ‘Breadcrumbs filter still doesn't allow html data’ is closed to new replies.