Well the title says it all haha. I want to change ‘Blog – Latest news’ left in the breadcrumbs into something else. How can I do that?
Hey Jillian,
Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
(function($){
$(document).ready(function(){
$('.main-title.entry-title a').each(function() {
var text = $(this).text();
$(this).text(text.replace('Blog - Laatste Nieuws', 'News'));
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
this script looks for exact phrases so I added your “Blog – Laatste Nieuws” for you, please adjust “News” to suit.
Best regards,
Mike
Awesome! Thanks!!