Tagged: breadcrumb, enfold theme, posts
-
AuthorPosts
-
September 14, 2014 at 1:47 am #318687
Hi
I have an issue with the avia_breadcrumb function in the enfold theme which breaks when I try and display a post with a title of 80+ characters. The page refuses to load beyond the header as the avia_breadcrumb function does not return. I am working on a child theme, but have tested it on the parent enfold theme and get the same issue.
If I shorten the post title it displays ok. Can you please advise on how to fix this?
Thanks in advance
September 15, 2014 at 4:23 am #318977Hey!
The website you posted is not loading for me, checked here too:
http://www.downforeveryoneorjustme.com/http://sitestage.findly.com/Best regards,
JosueSeptember 15, 2014 at 5:59 am #319017Hi Josue
We are having intermittent 502 errors with the site. It is up again now. Could you have another look?
Thanks
September 15, 2014 at 6:03 am #319018Hey!
Do you have access to your PHP error log?
Regards,
JosueSeptember 15, 2014 at 6:10 am #319019This reply has been marked as private.September 15, 2014 at 6:27 am #319026Hey!
Try asking your server provider support to enable the mb_strimwidth PHP function (Multibyte String Functions).
Best regards,
JosueSeptember 19, 2014 at 9:47 am #321764Finally heard back from the client IT team and they advise that opening up mb_ functions can cause all kinds of different security issues. They have advised against us doing it.
Any other suggestions or is this our only option?
Thanks
September 19, 2014 at 12:31 pm #321833Hi!
You can edit framework > php > function-set-avia-backend.php, find the code on line 576:
$string = mb_strimwidth($string, 0, $breakpoint) . $pad;Replace it with:
$string = $string . $pad;I think it’s safe to change since you’re not using right to left text direction. Not sure if this is going to work but please give it a try.
Regards,
IsmaelSeptember 22, 2014 at 6:16 am #322800Thanks for your help. That has solved it for me.
Cheers
-
AuthorPosts
- The topic ‘Long post title breaks avia_breadcrumb’ is closed to new replies.
