Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1373512

    Hello, how can I change Breadcrumbs navigation text?

    #1373518

    Hey troupdim,
    Thanks for the link to your site, I assume you want to change the You are here text
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
    $('.breadcrumb-title').text(function(index, text) {
        	return text.replace('You are here', 'Your New Text');
    	});
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_script');

    and adjust the Your New Text to suit.

    Best regards,
    Mike

    #1373526

    I add this code but appear an error.

    check private content

    #1373532

    Hi,

    Please add following code to bottom of functions.php file of your child theme

    
    add_filter('avia_breadcrumbs_args', 'avia_change_pre_text_breadcrumb', 10, 1);
    function avia_change_pre_text_breadcrumb($args){
    $args['before'] = '<span class="breadcrumb-title">' . __( 'Your custom text:', 'avia_framework' ) . '</span>';
    return $args;
    }
    

    Best regards,
    Yigit

    #1373619

    Hello, I have a serious problem. I have add these codes in Appearance ▸ Editor, but appear the following msg:

    Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.

    I send the password for access to fix this problem.

    thanks in advance

    #1373621

    Hi,
    I have removed the filter for you, please include FTP access so we can apply it again.
    What did you want the You are here text to say?

    Best regards,
    Mike

    #1373622

    I want to change “You are here” to “Βρίσκεστε εδώ”

    #1373627

    Hi,
    Ok, I added this code:

    add_filter('avia_breadcrumbs_args', 'avia_change_pre_text_breadcrumb', 10, 1);
    function avia_change_pre_text_breadcrumb($args){
    $args['before'] = '<span class="breadcrumb-title">' . __( 'Βρίσκεστε εδώ:', 'avia_framework' ) . '</span>';
    return $args;
    }

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1373628

    ok. thanks a lot!

    #1373629

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Changing Breadcrumbs navigation’ is closed to new replies.