-
AuthorPosts
-
November 22, 2022 at 2:39 pm #1373512
Hello, how can I change Breadcrumbs navigation text?
November 22, 2022 at 2:48 pm #1373518Hey 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,
MikeNovember 22, 2022 at 3:03 pm #1373526I add this code but appear an error.
check private content
November 22, 2022 at 3:28 pm #1373532Hi,
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,
YigitNovember 23, 2022 at 11:34 am #1373619Hello, 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
November 23, 2022 at 11:45 am #1373621Hi,
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,
MikeNovember 23, 2022 at 11:47 am #1373622I want to change “You are here” to “Βρίσκεστε εδώ”
November 23, 2022 at 12:40 pm #1373627Hi,
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,
MikeNovember 23, 2022 at 12:44 pm #1373628ok. thanks a lot!
November 23, 2022 at 12:52 pm #1373629Hi,
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 -
AuthorPosts
- The topic ‘Changing Breadcrumbs navigation’ is closed to new replies.