Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Delete Tag name on breadcrumb */
- add_filter('jnews_native_breadcrumb_category', 'delete_tag');
- function delete_tag($breadcrumb) {
- $pattern = '/<i[^>]*><\/i><span[^>]*>\s*<a[^>]*>\s*Tema\s*<\/a>\s*<\/span>/';
- $breadcrumb = preg_replace($pattern, '', $breadcrumb);
- $pattern = '/(<a[^>]*>Home<\/a>)\s*<\/span>\s*<i class="fa fa-angle-right">/';
- $replacement = '${1}</span>';
- $breadcrumb = preg_replace($pattern, $replacement, $breadcrumb);
- return $breadcrumb ;
- }
Add Comment
Please, Sign In to add comment