Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1110793

    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?

    #1110872

    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

    #1110887

    Awesome! Thanks!!

    #1110925

    Hi,

    Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Change 'Blog – Latest news' in breadcrumbs to something else’ is closed to new replies.